annotations: make action argument mandatory
authorAndrea Righi <andrea.righi@canonical.com>
Mon, 14 Nov 2022 20:51:52 +0000 (21:51 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 14 Nov 2022 20:51:52 +0000 (21:51 +0100)
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
annotations

index 9829dbc99cf6ef0ca407acd0ee7514577bf7e830..4e66a296172b6a16540c5197b24d7326d022a7b5 100755 (executable)
@@ -25,14 +25,14 @@ def make_parser():
     parser.add_argument('--config', '-c', action='store',
                         help='Select a specific config option')
 
-    ga = parser.add_argument_group(title='Action').add_mutually_exclusive_group()
+    ga = parser.add_argument_group(title='Action').add_mutually_exclusive_group(required=True)
     ga.add_argument('--query', '-q', action='store_true',
                         help='Query annotations')
     ga.add_argument('--export', '-e', action='store_true',
                         help='Convert annotations to .config format')
     ga.add_argument('--import', '-i', action='store',
                         metavar="FILE", dest='import_file',
-                        help='Convet .config to annotations format')
+                        help='Import a .config into annotations')
     ga.add_argument('--check', '-k', action='store',
                         metavar="FILE", dest='check_file',
                         help='Validate kernel .config with annotations')