Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
063cb536
Commit
063cb536
authored
Oct 27, 2014
by
Matt Bell
Committed by
Juan Batiz-Benet
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/ipfs: Display help text when help flag is set
parent
8edfee2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
cmd/ipfs/ipfs.go
cmd/ipfs/ipfs.go
+5
-0
core/commands/root.go
core/commands/root.go
+1
-0
No files found.
cmd/ipfs/ipfs.go
View file @
063cb536
...
...
@@ -50,6 +50,11 @@ func main() {
os
.
Exit
(
1
)
}
if
help
,
found
:=
options
.
Option
(
"help"
);
found
&&
help
.
(
bool
)
{
fmt
.
Println
(
cmd
.
Help
)
os
.
Exit
(
0
)
}
if
debug
,
found
:=
options
.
Option
(
"debug"
);
found
&&
debug
.
(
bool
)
{
u
.
Debug
=
true
...
...
core/commands/root.go
View file @
063cb536
...
...
@@ -15,6 +15,7 @@ var Root = &cmds.Command{
Options
:
[]
cmds
.
Option
{
cmds
.
Option
{[]
string
{
"config"
,
"c"
},
cmds
.
String
},
cmds
.
Option
{[]
string
{
"debug"
,
"D"
},
cmds
.
Bool
},
cmds
.
Option
{[]
string
{
"help"
,
"h"
},
cmds
.
Bool
},
},
Help
:
`ipfs - global versioned p2p merkledag file system
...
...
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