From aa2732d6a271d910551f034ffc12583b245b575a Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Fri, 12 Mar 2021 14:56:24 -0600 Subject: [PATCH] fix(short flags): correctly define cli flags with shorthands (#117) --- cmd/git-chglog/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/git-chglog/main.go b/cmd/git-chglog/main.go index c8a61bd8..414f2186 100644 --- a/cmd/git-chglog/main.go +++ b/cmd/git-chglog/main.go @@ -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", },