diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-05-22 01:56:17 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-05-22 01:56:17 -0700 |
commit | ba0166f681e054afd6a3c9192ea1c68e6d7bc6a5 (patch) | |
tree | bcdc5c2514b63709edf442d9c21efc59d151edea /cmd/ponzu/add.go | |
parent | 4854ce1d4e3adca3b416a564a8d0018448808e52 (diff) |
updating usage notes and multi-word formatted flags
Diffstat (limited to 'cmd/ponzu/add.go')
-rw-r--r-- | cmd/ponzu/add.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cmd/ponzu/add.go b/cmd/ponzu/add.go index 30cf168..f4b9fea 100644 --- a/cmd/ponzu/add.go +++ b/cmd/ponzu/add.go @@ -12,17 +12,16 @@ import ( ) var addCmd = &cobra.Command{ - Use: "add <repo>", + Use: "add <import path>", Aliases: []string{"a"}, Short: "Downloads addon from specified import path", Long: `Downloads addon from specified import path to $GOPATH/src and copys it to the -current project's ./addons directory. Must be called from within a -Ponzu project directory.`, +current project's addons directory. Must be called from within a Ponzu project directory.`, Example: `$ ponzu add github.com/bosssauce/fbscheduler`, RunE: func(cmd *cobra.Command, args []string) error { - // expecting two args, add and the go gettable package uri + // expecting two args, add/a and the go gettable package uri if len(args) < 1 { - return errors.New("repo not given") + return errors.New("no import path provided") } return getAddon(args[0]) |