aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2017-04-25 19:42:51 +0200
committerThomas Deutschmann <whissi@gentoo.org>2017-04-25 19:42:51 +0200
commitd93c551fd165ca3665c4a794a419d90476085187 (patch)
treeb32b51894e39e05968bc3962ff492e4ecae0e48b
parentcvetool: Add "new" command (diff)
downloadsecurity-d93c551fd165ca3665c4a794a419d90476085187.tar.gz
security-d93c551fd165ca3665c4a794a419d90476085187.tar.bz2
security-d93c551fd165ca3665c4a794a419d90476085187.zip
cvetool: Catch call without any arguments
-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)