Fix "--force set" without a value sneaking a None in

This commit is contained in:
Gilles Peskine 2019-08-01 23:14:00 +02:00
parent 435ce22920
commit 0c7fcd210f

View File

@ -361,7 +361,8 @@ if __name__ == '__main__':
found, unless --force is passed.
""")
parser_set.add_argument('symbol', metavar='SYMBOL')
parser_set.add_argument('value', metavar='VALUE', nargs='?')
parser_set.add_argument('value', metavar='VALUE', nargs='?',
default='')
parser_unset = subparsers.add_parser('unset',
help="""Comment out the #define
for SYMBOL. Do nothing if none