[game-data-packager] 07/14: Launcher: show help if invoked without a game ID
Simon McVittie
smcv at debian.org
Fri Oct 14 11:32:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch master
in repository game-data-packager.
commit 4df3c9c8b91939d2c8a28839ef9efc4526b32aa1
Author: Simon McVittie <smcv at debian.org>
Date: Fri Oct 14 11:31:32 2016 +0100
Launcher: show help if invoked without a game ID
---
runtime/launcher.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/runtime/launcher.py b/runtime/launcher.py
index 413b22d..c03ff42 100755
--- a/runtime/launcher.py
+++ b/runtime/launcher.py
@@ -195,6 +195,10 @@ class Launcher:
self.args, rest = parser.parse_known_args(argv)
self.args.arguments.extend(rest)
+ if self.args.id == 'launcher':
+ parser.print_help()
+ sys.exit(2)
+
self.id = self.args.id
self.keyfile = GLib.KeyFile()
desktop = os.path.join(RUNTIME_BUILT, self.id + '.desktop')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list