mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
Merge pull request #354 from chriscool/improve_help_messages
Improve help messages
This commit is contained in:
commit
45cc33b1ff
@ -100,8 +100,6 @@ const shortHelpFormat = `USAGE:
|
||||
|
||||
{{.Indent}}{{template "usage" .}}
|
||||
{{if .Synopsis}}
|
||||
SYNOPSIS
|
||||
|
||||
{{.Synopsis}}
|
||||
{{end}}{{if .Description}}
|
||||
{{.Description}}
|
||||
|
||||
@ -26,7 +26,7 @@ var mountCmd = &cmds.Command{
|
||||
Helptext: cmds.HelpText{
|
||||
Tagline: "Mounts IPFS to the filesystem (read-only)",
|
||||
Synopsis: `
|
||||
ipfs [-f <ipfs mount path>] [-n <ipns mount path>]
|
||||
ipfs mount [-f <ipfs mount path>] [-n <ipns mount path>]
|
||||
`,
|
||||
ShortDescription: `
|
||||
Mount ipfs at a read-only mountpoint on the OS (default: /ipfs and /ipns).
|
||||
@ -37,6 +37,7 @@ You may have to create /ipfs and /ipfs before using 'ipfs mount':
|
||||
|
||||
> sudo mkdir /ipfs /ipns
|
||||
> sudo chown ` + "`" + `whoami` + "`" + ` /ipfs /ipns
|
||||
> ipfs daemon &
|
||||
> ipfs mount
|
||||
`,
|
||||
LongDescription: `
|
||||
@ -48,6 +49,7 @@ You may have to create /ipfs and /ipfs before using 'ipfs mount':
|
||||
|
||||
> sudo mkdir /ipfs /ipns
|
||||
> sudo chown ` + "`" + `whoami` + "`" + ` /ipfs /ipns
|
||||
> ipfs daemon &
|
||||
> ipfs mount
|
||||
|
||||
EXAMPLE:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user