Update --aliases (-a) switch to use nargs=+

This breaks calls with multiple --aliases params specified and
introduces --aliases FILE1 FILE2 FILE3 [...] instead
influxdb
Martin Weinelt 2015-04-12 19:26:45 +02:00
parent 6f97932ea2
commit 3ec0874b77
1 changed files with 1 additions and 2 deletions

View File

@ -147,8 +147,7 @@ if __name__ == '__main__':
parser.add_argument('-a', '--aliases',
help='Read aliases from FILE',
default=[], action='append',
metavar='FILE')
nargs='+', metavar='FILE')
parser.add_argument('-m', '--mesh',
default=['bat0'], nargs='+',
help='Use given batman-adv mesh interface(s) (defaults'