mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 10:25:24 +00:00
fix(short flags): correctly define cli flags with shorthands (#117)
This commit is contained in:
parent
b70aef4adb
commit
aa2732d6a2
1 changed files with 5 additions and 2 deletions
|
|
@ -89,13 +89,15 @@ func CreateApp(actionFunc cli.ActionFunc) *cli.App {
|
|||
// config
|
||||
&cli.StringFlag{
|
||||
Name: "config, c",
|
||||
Aliases: []string{"c"},
|
||||
Usage: "specifies a different configuration file to pick up",
|
||||
Value: ".chglog/config.yml",
|
||||
},
|
||||
|
||||
// template
|
||||
&cli.StringFlag{
|
||||
Name: "template, t",
|
||||
Name: "template",
|
||||
Aliases: []string{"t"},
|
||||
Usage: "specifies a template file to pick up. If not specified, use the one in config",
|
||||
},
|
||||
|
||||
|
|
@ -107,7 +109,8 @@ func CreateApp(actionFunc cli.ActionFunc) *cli.App {
|
|||
|
||||
// output
|
||||
&cli.StringFlag{
|
||||
Name: "output, o",
|
||||
Name: "output",
|
||||
Aliases: []string{"o"},
|
||||
Usage: "output path and filename for the changelogs. If not specified, output to stdout",
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue