aboutsummaryrefslogtreecommitdiff
path: root/mcwrapper
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-03-31 10:23:28 +0200
committerKarel Kočí <cynerd@email.cz>2016-03-31 10:23:28 +0200
commit77cab339c532207378212ae09f4ba377d537cfcd (patch)
treec8c46df4de711c1b6d0b65a12d53aa07102b35c8 /mcwrapper
parent2a8ad733fb5dc2e763256207332e42c90a3d6a6d (diff)
downloadmcserver-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')
-rwxr-xr-xmcwrapper/__init__.py1
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')