aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/cvetool3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/cvetool b/bin/cvetool
index b01b8d6..f60248b 100755
--- a/bin/cvetool
+++ b/bin/cvetool
@@ -171,6 +171,9 @@ class CVETool:
return content.decode('utf-8')
def main():
+ if len(sys.argv) == 1:
+ CVETool(None, 'usage', sys.argv[2:])
+
if not 'CVETOOL_AUTH' in os.environ and not sys.argv[1] == 'pw':
print('CVETOOL_AUTH environment variable missing. Generate its contents with the pw subcommand.')
sys.exit(1)