Skip to content

Commit

Permalink
Added note about error codes
Browse files Browse the repository at this point in the history
How does this look? See #2293

License: MIT
Signed-off-by: Richard Littauer <[email protected]>
  • Loading branch information
RichardLitt committed Jun 30, 2016
1 parent f182675 commit b3f3999
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ ipfs uses a repository in the local file system. By default, the repo is located
at ~/.ipfs. To change the repo location, set the $IPFS_PATH environment variable:
export IPFS_PATH=/path/to/ipfsrepo
Error Codes
The CLI will return a message and a code if it is accessed incorrectly. Code 1
signifies that the CLI should return an exit code of 1 (and similarly 0 for
code 0). On POSIX systems, the standard convention is to pass '0' for a
successful execution, and '1' for a failed executions; ipfs follows this.
`,
},
Options: []cmds.Option{
Expand Down

0 comments on commit b3f3999

Please sign in to comment.