office: every subcommand answers --help, and delete refuses a system folder like /tmp or /home
This commit is contained in:
@@ -17,6 +17,9 @@ import harness as h # noqa: E402
|
||||
|
||||
|
||||
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("--")]
|
||||
post = "--post" in sys.argv
|
||||
if len(args) != 1:
|
||||
|
||||
Reference in New Issue
Block a user