diff options
author | Bruno Haible <bruno@clisp.org> | 2022-08-06 01:47:34 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-08-06 01:51:59 +0200 |
commit | 0108a901f10bf6ed6198e565c35b091c3fe6e218 (patch) | |
tree | 949ff9cee1fdc193853d423cd007dd5bf7090731 /gnulib-tool.py | |
parent | 13af1a0d8a0bb1028bd4a1276c8da2d68db78367 (diff) | |
download | gnulib-0108a901f10bf6ed6198e565c35b091c3fe6e218.tar.gz |
gnulib-tool.py: Refactor --makefile-name option.
* gnulib-tool.py (main): Handle option --makefile-name like all other
string-valued options.
Diffstat (limited to 'gnulib-tool.py')
-rwxr-xr-x | gnulib-tool.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gnulib-tool.py b/gnulib-tool.py index f11c7bd5cb..ba15ba7154 100755 --- a/gnulib-tool.py +++ b/gnulib-tool.py @@ -314,9 +314,9 @@ def main(): action='store_true') # avoids parser.add_argument('--avoid', - action='append', dest='avoids', default=None, + action='append', nargs=1) # libtool parser.add_argument('--libtool', @@ -370,10 +370,10 @@ def main(): choices=['2', '3orGPLv2', '3'], nargs='?') # makefile-name - parser.add_argument("--makefile-name", - dest="makefile_name", + parser.add_argument('--makefile-name', + dest='makefile_name', default=None, - type=str) + nargs=1) # single-configure parser.add_argument('--single-configure', dest='single_configure', @@ -634,6 +634,8 @@ def main(): lgpl = True libtool = cmdargs.libtool makefile_name = cmdargs.makefile_name + if makefile_name != None: + makefile_name = makefile_name[0] avoids = cmdargs.avoids if avoids != None: avoids = [ module |