diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2017-04-25 19:42:51 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2017-04-25 19:42:51 +0200 |
commit | d93c551fd165ca3665c4a794a419d90476085187 (patch) | |
tree | b32b51894e39e05968bc3962ff492e4ecae0e48b | |
parent | cvetool: Add "new" command (diff) | |
download | security-d93c551fd165ca3665c4a794a419d90476085187.tar.gz security-d93c551fd165ca3665c4a794a419d90476085187.tar.bz2 security-d93c551fd165ca3665c4a794a419d90476085187.zip |
cvetool: Catch call without any arguments
-rwxr-xr-x | bin/cvetool | 3 |
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) |