Fix list flag to use the long name

This commit is contained in:
2025-12-03 11:55:15 +00:00
parent c07b7598d0
commit 3285fbaef4
3 changed files with 4 additions and 4 deletions

BIN
.coverage Normal file

Binary file not shown.

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "resrm" name = "resrm"
version = "0.3.2" version = "0.3.3"
description = "drop-in replacement for rm with undo/restore built-in." description = "drop-in replacement for rm with undo/restore built-in."
authors = ["Marco D'Aleo <marco@marcodaleo.com>"] authors = ["Marco D'Aleo <marco@marcodaleo.com>"]
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"

View File

@@ -8,7 +8,7 @@ Basic usage:
resrm -f file # ignore nonexistent, no prompt resrm -f file # ignore nonexistent, no prompt
resrm -i file # interactive prompt before removal resrm -i file # interactive prompt before removal
resrm --skip-trash file # permanent delete (bypass trash) resrm --skip-trash file # permanent delete (bypass trash)
resrm -l # list trash entries (neat table) resrm -l|--list # list trash entries (neat table)
resrm --restore <id|name> # restore by short-id (8 chars) or exact basename resrm --restore <id|name> # restore by short-id (8 chars) or exact basename
resrm --empty # empty trash entries (permanent) resrm --empty # empty trash entries (permanent)
""" """
@@ -424,12 +424,12 @@ def main(argv: Optional[List[str]] = None):
print(__doc__) print(__doc__)
return return
if not args.paths and not (args.l or args.empty or args.restore): if not args.paths and not (args.list or args.empty or args.restore):
print("resrm: missing operand") print("resrm: missing operand")
print("Try 'resrm --help' for more information.") print("Try 'resrm --help' for more information.")
return return
if args.l: if args.list:
list_trash() list_trash()
return return