office: every subcommand answers --help, and delete refuses a system folder like /tmp or /home

This commit is contained in:
Sam
2026-11-13 17:27:14 +11:00
parent 0717697f03
commit 33a06da232
7 changed files with 23 additions and 1 deletions

View File

@@ -29,6 +29,9 @@ LOCK = "/tmp/paperclip-harness-merge.lock"
def main():
if "-h" in sys.argv[1:] or "--help" in sys.argv[1:]:
h.say(__doc__.strip())
return 0
args = [a for a in sys.argv[1:]]
check_only = "--check" in args
args = [a for a in args if not a.startswith("--")]