improve command help text

This commit is contained in:
Lilian Jónsdóttir 2024-07-30 14:31:45 -07:00
parent 7c0f78f4d6
commit 8d7db7cfa7

View file

@ -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 {