Show help message if args of the input and necessary args is not equal
This commit is contained in:
parent
76ac160fab
commit
0f55dccc9b
@ -61,6 +61,10 @@ def magicli(exclude=['main'], glbls=None, argv=None):
|
|||||||
print(help_message(config))
|
print(help_message(config))
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
|
if not len(args) == len(config['arguments']):
|
||||||
|
print(help_message(config))
|
||||||
|
exit()
|
||||||
|
|
||||||
args, kwargs = cast_types(args, kwargs, config)
|
args, kwargs = cast_types(args, kwargs, config)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user