From d93c551fd165ca3665c4a794a419d90476085187 Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Tue, 25 Apr 2017 19:42:51 +0200 Subject: cvetool: Catch call without any arguments --- bin/cvetool | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3-65-gdbad