From: Gerhard Sittig Date: Sat, 9 Jan 2021 16:34:04 +0000 (+0100) Subject: source/new-driver: support short command line option names (-u et al) X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=commitdiff_plain;h=fa07228b7fd6a2e0bf910f9f978c0875354cd50a;hp=e2e58645a83b788f68a8488c75366d36528b78b0 source/new-driver: support short command line option names (-u et al) --- diff --git a/source/new-driver b/source/new-driver index 14178d3..b584368 100755 --- a/source/new-driver +++ b/source/new-driver @@ -179,15 +179,15 @@ if __name__ == '__main__': parser = ArgumentParser(description='Bootstrap a new sigrok hardware driver') parser.add_argument('name', nargs='*', default=[], help='new driver name') - parser.add_argument('--giturl', default=defaulturl, + parser.add_argument('--giturl', '-u', default=defaulturl, help='URL of the libsigrok git repository ' '(defaults to {0})'.format(defaulturl)) - parser.add_argument('--tmpl-dir', default=defaultdir, + parser.add_argument('--tmpl-dir', '-t', default=defaultdir, help='Directory in which the templates are stored ' '(defaults to {0})'.format(defaultdir)) - parser.add_argument('--author', default=author, required=not author, + parser.add_argument('--author', '-a', default=author, required=not author, help='User name to write the Copyright lines') - parser.add_argument('--email', default=email, required=not email, + parser.add_argument('--email', '-e', default=email, required=not email, help='Email address to write the Copyright lines') opts = parser.parse_args()