Skip to content

Commit

Permalink
[bin] Marked required arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Dec 11, 2015
1 parent bb341f7 commit 28de4a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/netjsonconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ parser = argparse.ArgumentParser(description=description,
config = parser.add_argument_group('input')

config.add_argument('--config', '-c',
required=True,
action='store',
type=str,
help='config file or string, must be valid NetJSON DeviceConfiguration')
Expand All @@ -47,12 +48,14 @@ config.add_argument('--templates', '-t',
output = parser.add_argument_group('output')

output.add_argument('--backend', '-b',
required=True,
choices=['openwrt', 'openwisp'],
action='store',
type=str,
help='Configuration backend: openwrt or openwisp')

output.add_argument('--method', '-m',
required=True,
choices=['render', 'generate', 'write'],
action='store',
help='Backend method to use. '\
Expand Down

0 comments on commit 28de4a5

Please sign in to comment.