Skip to content

Commit 28de4a5

Browse files
committed
[bin] Marked required arguments
1 parent bb341f7 commit 28de4a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/netjsonconfig

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ parser = argparse.ArgumentParser(description=description,
3333
config = parser.add_argument_group('input')
3434

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

4950
output.add_argument('--backend', '-b',
51+
required=True,
5052
choices=['openwrt', 'openwisp'],
5153
action='store',
5254
type=str,
5355
help='Configuration backend: openwrt or openwisp')
5456

5557
output.add_argument('--method', '-m',
58+
required=True,
5659
choices=['render', 'generate', 'write'],
5760
action='store',
5861
help='Backend method to use. '\

0 commit comments

Comments
 (0)