improve command help text
This commit is contained in:
parent
7c0f78f4d6
commit
8d7db7cfa7
3
main.go
3
main.go
|
@ -205,6 +205,7 @@ var (
|
|||
Name: "trash",
|
||||
Aliases: []string{"tr"},
|
||||
Usage: "Trash a file or files",
|
||||
UsageText: "[command options] [filename(s)]",
|
||||
Flags: slices.Concat(trashingFlags, filterFlags),
|
||||
Before: beforeTrash,
|
||||
Action: func(ctx *cli.Context) error {
|
||||
|
@ -283,6 +284,7 @@ var (
|
|||
Name: "restore",
|
||||
Aliases: []string{"re"},
|
||||
Usage: "Restore a trashed file or files",
|
||||
UsageText: "[command options] [filename(s)]",
|
||||
Flags: slices.Concat(cleanRestoreFlags, trashedFlags, filterFlags),
|
||||
Before: beforeCommands,
|
||||
Action: func(_ *cli.Context) error {
|
||||
|
@ -314,6 +316,7 @@ var (
|
|||
Name: "clean",
|
||||
Aliases: []string{"cl"},
|
||||
Usage: "Clean files from trash",
|
||||
UsageText: "[command options] [filename(s)]",
|
||||
Flags: slices.Concat(cleanRestoreFlags, trashedFlags, filterFlags),
|
||||
Before: beforeCommands,
|
||||
Action: func(_ *cli.Context) error {
|
||||
|
|
Loading…
Reference in a new issue