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",
|
Name: "trash",
|
||||||
Aliases: []string{"tr"},
|
Aliases: []string{"tr"},
|
||||||
Usage: "Trash a file or files",
|
Usage: "Trash a file or files",
|
||||||
|
UsageText: "[command options] [filename(s)]",
|
||||||
Flags: slices.Concat(trashingFlags, filterFlags),
|
Flags: slices.Concat(trashingFlags, filterFlags),
|
||||||
Before: beforeTrash,
|
Before: beforeTrash,
|
||||||
Action: func(ctx *cli.Context) error {
|
Action: func(ctx *cli.Context) error {
|
||||||
|
@ -283,6 +284,7 @@ var (
|
||||||
Name: "restore",
|
Name: "restore",
|
||||||
Aliases: []string{"re"},
|
Aliases: []string{"re"},
|
||||||
Usage: "Restore a trashed file or files",
|
Usage: "Restore a trashed file or files",
|
||||||
|
UsageText: "[command options] [filename(s)]",
|
||||||
Flags: slices.Concat(cleanRestoreFlags, trashedFlags, filterFlags),
|
Flags: slices.Concat(cleanRestoreFlags, trashedFlags, filterFlags),
|
||||||
Before: beforeCommands,
|
Before: beforeCommands,
|
||||||
Action: func(_ *cli.Context) error {
|
Action: func(_ *cli.Context) error {
|
||||||
|
@ -314,6 +316,7 @@ var (
|
||||||
Name: "clean",
|
Name: "clean",
|
||||||
Aliases: []string{"cl"},
|
Aliases: []string{"cl"},
|
||||||
Usage: "Clean files from trash",
|
Usage: "Clean files from trash",
|
||||||
|
UsageText: "[command options] [filename(s)]",
|
||||||
Flags: slices.Concat(cleanRestoreFlags, trashedFlags, filterFlags),
|
Flags: slices.Concat(cleanRestoreFlags, trashedFlags, filterFlags),
|
||||||
Before: beforeCommands,
|
Before: beforeCommands,
|
||||||
Action: func(_ *cli.Context) error {
|
Action: func(_ *cli.Context) error {
|
||||||
|
|
Loading…
Reference in a new issue