office: every subcommand answers --help, and delete refuses a system folder like /tmp or /home
This commit is contained in:
@@ -33,6 +33,9 @@ PAGES = ["tree", "reply", "log", "new"]
|
||||
|
||||
|
||||
def main():
|
||||
if "-h" in sys.argv[1:] or "--help" in sys.argv[1:]:
|
||||
h.say(__doc__.strip())
|
||||
return 0
|
||||
argv = sys.argv[1:]
|
||||
args = [a for a in argv if not a.startswith("--")]
|
||||
if not args:
|
||||
|
||||
Reference in New Issue
Block a user