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:
Martin Weinelt 2015-04-12 19:26:45 +02:00
parent 6f97932ea2
commit 3ec0874b77

View file

@ -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'