diff --git a/openslides/__main__.py b/openslides/__main__.py index 7bbf2c4b5..38555f091 100644 --- a/openslides/__main__.py +++ b/openslides/__main__.py @@ -36,6 +36,9 @@ def main(): setup_django_settings_module(local_installation=local_installation) execute_from_command_line(sys.argv) else: + # Check for unknown_args. + if unknown_args: + parser.error('Unknown arguments {}'.format(' '.join(unknown_args))) # Run a command that is defined here # These are commands that can not rely on an existing settings known_args.callback(known_args)