Detailed changes
@@ -65,7 +65,7 @@ func runComment(cmd *cobra.Command, args []string) error {
}
var commentCmd = &cobra.Command{
- Use: "comment <id> [<options>...]",
+ Use: "comment <id>",
Short: "Add a new comment to a bug",
RunE: runComment,
}
@@ -49,7 +49,7 @@ func runLabel(cmd *cobra.Command, args []string) error {
}
var labelCmd = &cobra.Command{
- Use: "label [<option>...] <id> [<label>...]",
+ Use: "label <id> [<label>...]",
Short: "Manipulate bug's label",
RunE: runLabel,
}
@@ -53,7 +53,7 @@ func runNewBug(cmd *cobra.Command, args []string) error {
}
var newCmd = &cobra.Command{
- Use: "new [<option>...]",
+ Use: "new",
Short: "Create a new bug",
RunE: runNewBug,
}
@@ -10,7 +10,7 @@ git\-bug\-comment \- Add a new comment to a bug
.SH SYNOPSIS
.PP
-\fBgit\-bug comment <id> [<options>\&...] [flags]\fP
+\fBgit\-bug comment <id> [flags]\fP
.SH DESCRIPTION
@@ -10,7 +10,7 @@ git\-bug\-label \- Manipulate bug's label
.SH SYNOPSIS
.PP
-\fBgit\-bug label [<option>\&...] <id> [<label>\&...] [flags]\fP
+\fBgit\-bug label <id> [<label>\&...] [flags]\fP
.SH DESCRIPTION
@@ -10,7 +10,7 @@ git\-bug\-new \- Create a new bug
.SH SYNOPSIS
.PP
-\fBgit\-bug new [<option>\&...] [flags]\fP
+\fBgit\-bug new [flags]\fP
.SH DESCRIPTION
@@ -7,7 +7,7 @@ Add a new comment to a bug
Add a new comment to a bug
```
-git-bug comment <id> [<options>...] [flags]
+git-bug comment <id> [flags]
```
### Options
@@ -7,7 +7,7 @@ Manipulate bug's label
Manipulate bug's label
```
-git-bug label [<option>...] <id> [<label>...] [flags]
+git-bug label <id> [<label>...] [flags]
```
### Options
@@ -7,7 +7,7 @@ Create a new bug
Create a new bug
```
-git-bug new [<option>...] [flags]
+git-bug new [flags]
```
### Options
@@ -169,7 +169,7 @@ func (repo *GitRepo) PushRefs(remote string, refSpec string) (string, error) {
stdout, stderr, err := repo.runGitCommandRaw(nil, "push", remote, refSpec)
if err != nil {
- return stdout + stderr, fmt.Errorf("failed to push to the remote '%s': %v", remote, err)
+ return stdout + stderr, fmt.Errorf("failed to push to the remote '%s': %v", remote, stderr)
}
return stdout + stderr, nil
}