aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-10-17 20:47:31 +0200
committerMichael Muré <batolettre@gmail.com>2018-10-17 20:47:31 +0200
commitb08e28e67e64d09f615bf6f863fd8d5f1b2f8f7f (patch)
treeb9b199be67565e27ec30f79cdb1df1acdd155b08 /commands
parent7a511f9a13f3d1064fd11c9146e6b21cb961a8b2 (diff)
downloadgit-bug-b08e28e67e64d09f615bf6f863fd8d5f1b2f8f7f.tar.gz
commands: fix "comment add" flags set on the wrong command
Diffstat (limited to 'commands')
-rw-r--r--commands/comment_add.go6
-rw-r--r--commands/root.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/commands/comment_add.go b/commands/comment_add.go
index 6ee3fc15..d720a09b 100644
--- a/commands/comment_add.go
+++ b/commands/comment_add.go
@@ -62,13 +62,13 @@ var commentAddCmd = &cobra.Command{
func init() {
commentCmd.AddCommand(commentAddCmd)
- commentCmd.Flags().SortFlags = false
+ commentAddCmd.Flags().SortFlags = false
- commentCmd.Flags().StringVarP(&commentAddMessageFile, "file", "F", "",
+ commentAddCmd.Flags().StringVarP(&commentAddMessageFile, "file", "F", "",
"Take the message from the given file. Use - to read the message from the standard input",
)
- commentCmd.Flags().StringVarP(&commentAddMessage, "message", "m", "",
+ commentAddCmd.Flags().StringVarP(&commentAddMessage, "message", "m", "",
"Provide the new message from the command line",
)
}
diff --git a/commands/root.go b/commands/root.go
index 27268bf4..b0772726 100644
--- a/commands/root.go
+++ b/commands/root.go
@@ -23,7 +23,7 @@ var RootCmd = &cobra.Command{
Short: "A bug tracker embedded in Git",
Long: `git-bug is a bug tracker embedded in git.
-git-hub use git objects to store the bug tracking separated from the files
+git-bug use git objects to store the bug tracking separated from the files
history. As bugs are regular git objects, they can be pushed and pulled from/to
the same git remote your are already using to collaborate with other peoples.