We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49e15b1 commit 95f8660Copy full SHA for 95f8660
oss/lib/cli_bridge.go
@@ -52,9 +52,17 @@ func NewCommandBridge(a Commander) *cli.Command {
52
// fmt.Printf("INIT ERROR: unknown oss options: %s\n", s)
53
break
54
}
55
- if result.Flags().Get(opt.name, "") == nil {
+ name := opt.nameAlias[2:]
56
+
57
+ shorthand := ""
58
+ if len(opt.name) > 0 {
59
+ shorthand = opt.name[1:]
60
+ }
61
62
+ if result.Flags().Get(name, "") == nil {
63
result.Flags().Add(cli.Flag{
- Name: opt.nameAlias[2:],
64
+ Name: name,
65
+ Shorthand: shorthand,
66
Usage: i18n.T(opt.helpEnglish, opt.helpChinese),
67
// Assignable: opt.optionType todo
68
})
0 commit comments