Commit 45cc33b1 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

Merge pull request #354 from chriscool/improve_help_messages

Improve help messages
parents e621aebc 288ee753
...@@ -100,8 +100,6 @@ const shortHelpFormat = `USAGE: ...@@ -100,8 +100,6 @@ const shortHelpFormat = `USAGE:
{{.Indent}}{{template "usage" .}} {{.Indent}}{{template "usage" .}}
{{if .Synopsis}} {{if .Synopsis}}
SYNOPSIS
{{.Synopsis}} {{.Synopsis}}
{{end}}{{if .Description}} {{end}}{{if .Description}}
{{.Description}} {{.Description}}
......
...@@ -26,7 +26,7 @@ var mountCmd = &cmds.Command{ ...@@ -26,7 +26,7 @@ var mountCmd = &cmds.Command{
Helptext: cmds.HelpText{ Helptext: cmds.HelpText{
Tagline: "Mounts IPFS to the filesystem (read-only)", Tagline: "Mounts IPFS to the filesystem (read-only)",
Synopsis: ` Synopsis: `
ipfs [-f <ipfs mount path>] [-n <ipns mount path>] ipfs mount [-f <ipfs mount path>] [-n <ipns mount path>]
`, `,
ShortDescription: ` ShortDescription: `
Mount ipfs at a read-only mountpoint on the OS (default: /ipfs and /ipns). 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': ...@@ -37,6 +37,7 @@ You may have to create /ipfs and /ipfs before using 'ipfs mount':
> sudo mkdir /ipfs /ipns > sudo mkdir /ipfs /ipns
> sudo chown ` + "`" + `whoami` + "`" + ` /ipfs /ipns > sudo chown ` + "`" + `whoami` + "`" + ` /ipfs /ipns
> ipfs daemon &
> ipfs mount > ipfs mount
`, `,
LongDescription: ` LongDescription: `
...@@ -48,6 +49,7 @@ You may have to create /ipfs and /ipfs before using 'ipfs mount': ...@@ -48,6 +49,7 @@ You may have to create /ipfs and /ipfs before using 'ipfs mount':
> sudo mkdir /ipfs /ipns > sudo mkdir /ipfs /ipns
> sudo chown ` + "`" + `whoami` + "`" + ` /ipfs /ipns > sudo chown ` + "`" + `whoami` + "`" + ` /ipfs /ipns
> ipfs daemon &
> ipfs mount > ipfs mount
EXAMPLE: EXAMPLE:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment