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 committed by Darryl Green
parent a52f97d5a5
commit 63cdb2855f

View File

@ -354,7 +354,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