diff options
author | Karel Kočí <cynerd@email.cz> | 2016-03-31 10:23:28 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-03-31 10:23:28 +0200 |
commit | 77cab339c532207378212ae09f4ba377d537cfcd (patch) | |
tree | c8c46df4de711c1b6d0b65a12d53aa07102b35c8 /mcwrapper/__init__.py | |
parent | 2a8ad733fb5dc2e763256207332e42c90a3d6a6d (diff) | |
download | mcserver-wrapper-77cab339c532207378212ae09f4ba377d537cfcd.tar.gz mcserver-wrapper-77cab339c532207378212ae09f4ba377d537cfcd.tar.bz2 mcserver-wrapper-77cab339c532207378212ae09f4ba377d537cfcd.zip |
Fix execution without command
When no command is specified, help is printed but execution was
continuing. This is now fixed.
Diffstat (limited to 'mcwrapper/__init__.py')
-rwxr-xr-x | mcwrapper/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mcwrapper/__init__.py b/mcwrapper/__init__.py index a1fed68..2ae3c2a 100755 --- a/mcwrapper/__init__.py +++ b/mcwrapper/__init__.py @@ -61,6 +61,7 @@ def main(): if not command: parser.print_help() + return if 'nogui' not in command: command.append('nogui') |