From: Andrea Righi Date: Mon, 5 Dec 2022 15:38:13 +0000 (+0100) Subject: annotations: allow to specify --write and --note at the same time X-Git-Tag: v0.1~47 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=adf7893de2335c8eff0bbdf263619f2a0c2b68e6;p=annotations.git annotations: allow to specify --write and --note at the same time Signed-off-by: Andrea Righi --- diff --git a/annotations b/annotations index a61dd3e..6b1a0a3 100755 --- a/annotations +++ b/annotations @@ -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',