Permalink
Browse files

[bin] Marked required arguments

  • Loading branch information...
nemesisdesign committed Dec 11, 2015
1 parent bb341f7 commit 28de4a595be787fe59c7ee9cf395f3c131df3ae3
Showing with 3 additions and 0 deletions.
  1. +3 −0 bin/netjsonconfig
@@ -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')
@@ -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. '\

0 comments on commit 28de4a5

Please sign in to comment.