enable short option merging
This commit is contained in:
parent
bc8eadc65a
commit
4c133f0d0f
17
main.go
17
main.go
|
@ -349,14 +349,15 @@ var (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app := &cli.App{
|
app := &cli.App{
|
||||||
Name: appname,
|
Name: appname,
|
||||||
Usage: appdesc,
|
Usage: appdesc,
|
||||||
Version: appversion,
|
Version: appversion,
|
||||||
Before: before_all,
|
Before: before_all,
|
||||||
After: after,
|
After: after,
|
||||||
Action: action,
|
Action: action,
|
||||||
Commands: []*cli.Command{do_trash, do_list, do_restore, do_clean},
|
Commands: []*cli.Command{do_trash, do_list, do_restore, do_clean},
|
||||||
Flags: global_flags,
|
Flags: global_flags,
|
||||||
|
UseShortOptionHandling: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := app.Run(os.Args); err != nil {
|
if err := app.Run(os.Args); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue