Skip to content

Commit

Permalink
Merge pull request #14 from waits/help-text
Browse files Browse the repository at this point in the history
Add argument information to "usage" section of help text
  • Loading branch information
diwakergupta committed Jun 2, 2016
2 parents 88d8d13 + 993cd51 commit 1d7e050
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cmd/add-member.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func addMember(cmd *cobra.Command, args []string) (err error) {

// addMemberCmd represents the add-member command
var addMemberCmd = &cobra.Command{
Use: "add-member",
Use: "add-member [flags] <email> <first-name> <last-name>",
Short: "Add a new member to a team",
RunE: addMember,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func cp(cmd *cobra.Command, args []string) (err error) {

// cpCmd represents the cp command
var cpCmd = &cobra.Command{
Use: "cp",
Use: "cp [flags] <source> <target>",
Short: "Copy files",
RunE: cp,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func get(cmd *cobra.Command, args []string) (err error) {

// getCmd represents the get command
var getCmd = &cobra.Command{
Use: "get",
Use: "get [flags] <source> [<target>]",
Short: "Download a file",
RunE: get,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func ls(cmd *cobra.Command, args []string) (err error) {

// lsCmd represents the ls command
var lsCmd = &cobra.Command{
Use: "ls",
Use: "ls [flags] [<path>]",
Short: "List folders",
Long: `List Folders.
Attempting ls on files will fail with 'Error: path/not_folder/.'
Expand Down
2 changes: 1 addition & 1 deletion cmd/mkdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func mkdir(cmd *cobra.Command, args []string) (err error) {

// mkdirCmd represents the mkdir command
var mkdirCmd = &cobra.Command{
Use: "mkdir",
Use: "mkdir [flags] <directory>",
Short: "Create a new directory",
RunE: mkdir,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/mv.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func mv(cmd *cobra.Command, args []string) (err error) {

// mvCmd represents the mv command
var mvCmd = &cobra.Command{
Use: "mv",
Use: "mv [flags] <source> <target>",
Short: "Move files",
RunE: mv,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func put(cmd *cobra.Command, args []string) (err error) {

// putCmd represents the put command
var putCmd = &cobra.Command{
Use: "put",
Use: "put [flags] <source> [<target>]",
Short: "Upload files",
RunE: put,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/remove-member.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func removeMember(cmd *cobra.Command, args []string) (err error) {

// removeMemberCmd represents the remove-member command
var removeMemberCmd = &cobra.Command{
Use: "remove-member",
Use: "remove-member [flags] <email>",
Short: "Remove member from a team",
RunE: removeMember,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func restore(cmd *cobra.Command, args []string) (err error) {

// restoreCmd represents the restore command
var restoreCmd = &cobra.Command{
Use: "restore",
Use: "restore [flags] <file> <revision>",
Short: "Restore files",
RunE: restore,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/revs.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func revs(cmd *cobra.Command, args []string) (err error) {

// revsCmd represents the revs command
var revsCmd = &cobra.Command{
Use: "revs",
Use: "revs [flags] <file>",
Short: "List file revisions",
RunE: revs,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func rm(cmd *cobra.Command, args []string) (err error) {

// rmCmd represents the rm command
var rmCmd = &cobra.Command{
Use: "rm",
Use: "rm [flags] <file>",
Short: "Remove files",
RunE: rm,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func search(cmd *cobra.Command, args []string) (err error) {

// searchCmd represents the search command
var searchCmd = &cobra.Command{
Use: "search",
Use: "search [flags] <query>",
Short: "Search",
RunE: search,
}
Expand Down

0 comments on commit 1d7e050

Please sign in to comment.