From 5098e39203c9b06daf3f5d546f7d8ec774d5714d Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sun, 16 Nov 2014 16:08:15 +0100 Subject: [PATCH 1/3] Suggest use of ipfs daemon in mount help message License: MIT Signed-off-by: Christian Couder --- core/commands2/mount_unix.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/commands2/mount_unix.go b/core/commands2/mount_unix.go index 51a957ad9..2fd45a2a0 100644 --- a/core/commands2/mount_unix.go +++ b/core/commands2/mount_unix.go @@ -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: From 46d8acf60f997ec747cefb5ea915af3c0700509a Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sun, 16 Nov 2014 21:04:53 +0100 Subject: [PATCH 2/3] Add missing 'mount' in mount synopsis License: MIT Signed-off-by: Christian Couder --- core/commands2/mount_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands2/mount_unix.go b/core/commands2/mount_unix.go index 2fd45a2a0..6495958ce 100644 --- a/core/commands2/mount_unix.go +++ b/core/commands2/mount_unix.go @@ -26,7 +26,7 @@ var mountCmd = &cmds.Command{ Helptext: cmds.HelpText{ Tagline: "Mounts IPFS to the filesystem (read-only)", Synopsis: ` -ipfs [-f ] [-n ] +ipfs mount [-f ] [-n ] `, ShortDescription: ` Mount ipfs at a read-only mountpoint on the OS (default: /ipfs and /ipns). From 288ee753c027d4c35e6cf9c73d6be5f9f2da1658 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Mon, 17 Nov 2014 21:08:56 +0100 Subject: [PATCH 3/3] Remove 'SYNOPSIS' from short help text It takes some space and it looks like it applies to the description too. License: MIT Signed-off-by: Christian Couder --- commands/cli/helptext.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/commands/cli/helptext.go b/commands/cli/helptext.go index 46315870a..9acc3c7d2 100644 --- a/commands/cli/helptext.go +++ b/commands/cli/helptext.go @@ -100,8 +100,6 @@ const shortHelpFormat = `USAGE: {{.Indent}}{{template "usage" .}} {{if .Synopsis}} -SYNOPSIS - {{.Synopsis}} {{end}}{{if .Description}} {{.Description}}