office: every subcommand answers --help, and delete refuses a system folder like /tmp or /home
This commit is contained in:
@@ -83,6 +83,9 @@ def ask(state, question):
|
||||
|
||||
|
||||
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:] if not a.startswith("--")]
|
||||
if not args:
|
||||
h.say("usage: office triage <task> [--ask next|failure]")
|
||||
|
||||
Reference in New Issue
Block a user