Skip to content

Commit

Permalink
Cleaned up ipfs id mans
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Richard Littauer <[email protected]>
  • Loading branch information
RichardLitt committed Feb 3, 2016
1 parent f5e7a3b commit d5153db
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions core/commands/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ import (
u "github.com/ipfs/go-ipfs/util"
)

const offlineIdErrorMessage = `ID command fails when run without daemon, we are working to fix this.
In the meantime, please run the daemon if you want to use 'ipfs id':
ipfs daemon &
ipfs id QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
`

type IdOutput struct {
ID string
PublicKey string
Expand All @@ -38,15 +31,15 @@ var IDCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "Show IPFS Node ID info.",
ShortDescription: `
Prints out information about the specified peer,
if no peer is specified, prints out local peers info.
ipfs id supports the format option for output with the following keys:
<id> : the peers id
<aver>: agent version
<pver>: protocol version
<pubkey>: public key
<addrs>: addresses (newline delimited)
Prints out information about the specified peer.
If no peer is specified, prints out information for local peers.
'ipfs id' supports the format option for output with the following keys:
<id> : The peers id.
<aver>: Agent version.
<pver>: Protocol version.
<pubkey>: Public key.
<addrs>: Addresses (newline delimited).
`,
},
Arguments: []cmds.Argument{
Expand Down

0 comments on commit d5153db

Please sign in to comment.