Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
d8cec35b
Commit
d8cec35b
authored
Aug 22, 2016
by
Péter Szilágyi
Committed by
GitHub
Aug 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2927 from obscuren/license
cmd/geth: added copyright and license information
parents
f81cff53
5fff491b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
main.go
cmd/geth/main.go
+23
-0
usage.go
cmd/geth/usage.go
+2
-0
No files found.
cmd/geth/main.go
View file @
d8cec35b
...
...
@@ -143,6 +143,11 @@ This is a destructive action and changes the network in which you will be
participating.
`
,
},
{
Action
:
license
,
Name
:
"license"
,
Usage
:
"displays geth's license information"
,
},
}
app
.
Flags
=
[]
cli
.
Flag
{
...
...
@@ -408,3 +413,21 @@ func version(c *cli.Context) error {
return
nil
}
func
license
(
c
*
cli
.
Context
)
error
{
fmt
.
Println
(
`Geth is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Geth is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with geth. If not, see <http://www.gnu.org/licenses/>.
`
)
return
nil
}
cmd/geth/usage.go
View file @
d8cec35b
...
...
@@ -30,6 +30,8 @@ import (
var
AppHelpTemplate
=
`NAME:
{{.App.Name}} - {{.App.Usage}}
Copyright 2013-2016 The go-ethereum Authors
USAGE:
{{.App.HelpName}} [options]{{if .App.Commands}} command [command options]{{end}} {{if .App.ArgsUsage}}{{.App.ArgsUsage}}{{else}}[arguments...]{{end}}
{{if .App.Version}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment