annotations: allow to specify --write and --note at the same time
authorAndrea Righi <andrea.righi@canonical.com>
Mon, 5 Dec 2022 15:38:13 +0000 (16:38 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 30 Jan 2023 08:12:28 +0000 (09:12 +0100)
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
annotations

index a61dd3ed0b7812ee16ee83bf5de17f5cf6df0af6..6b1a0a3ba79c065ba61bc1ba1e019713469e2d76 100755 (executable)
@@ -35,13 +35,13 @@ def make_parser():
                         help='Select a specific config option')
     parser.add_argument('--query', '-q', action='store_true',
                         help='Query annotations')
+    parser.add_argument('--note', '-n', action='store',
+                        help='Write a specific note to a config option in annotations')
 
     ga = parser.add_argument_group(title='Action').add_mutually_exclusive_group(required=False)
     ga.add_argument('--write', '-w', action='store',
                         metavar='VALUE', dest='value',
                         help='Set a specific config value in annotations (use \'null\' to remove)')
-    ga.add_argument('--note', '-n', action='store',
-                        help='Write a specific note to a config option in annotations')
     ga.add_argument('--export', '-e', action='store_true',
                         help='Convert annotations to .config format')
     ga.add_argument('--import', '-i', action='store',