aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cws-status11
1 files changed, 10 insertions, 1 deletions
diff --git a/cws-status b/cws-status
index 8999aae..b6c1fff 100644
--- a/cws-status
+++ b/cws-status
@@ -35,8 +35,17 @@ EX_USAGE = 64
EX_NOUSER = 67
+class ArgumentParser(argparse.ArgumentParser):
+
+ def error(self, message):
+ try:
+ super().error(message)
+ except SystemExit:
+ sys.exit(EX_USAGE)
+
+
# Parse arguments.
-argparser = argparse.ArgumentParser(description='Query the publish status of \
+argparser = ArgumentParser(description='Query the publish status of \
extensions on the Chrome Web Store dashboard.')
argparser.add_argument(
'--url',