Update --aliases (-a) switch to use nargs=+
This breaks calls with multiple --aliases params specified and introduces --aliases FILE1 FILE2 FILE3 [...] instead
This commit is contained in:
parent
6f97932ea2
commit
3ec0874b77
|
@ -147,8 +147,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
parser.add_argument('-a', '--aliases',
|
parser.add_argument('-a', '--aliases',
|
||||||
help='Read aliases from FILE',
|
help='Read aliases from FILE',
|
||||||
default=[], action='append',
|
nargs='+', metavar='FILE')
|
||||||
metavar='FILE')
|
|
||||||
parser.add_argument('-m', '--mesh',
|
parser.add_argument('-m', '--mesh',
|
||||||
default=['bat0'], nargs='+',
|
default=['bat0'], nargs='+',
|
||||||
help='Use given batman-adv mesh interface(s) (defaults'
|
help='Use given batman-adv mesh interface(s) (defaults'
|
||||||
|
|
Loading…
Reference in a new issue