[game-data-packager] 15/19: Python code: insist on --install and/or --destination
Simon McVittie
smcv at debian.org
Tue Jan 13 11:34:38 UTC 2015
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 c9bb6734ab691505a328e3a3ff6454e132e7c48f
Author: Simon McVittie <smcv at debian.org>
Date: Tue Jan 13 10:22:55 2015 +0000
Python code: insist on --install and/or --destination
---
lib/game_data_packager/__init__.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index f38d6bc..be09fdc 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -1661,6 +1661,10 @@ def run_command_line():
parsed = parser.parse_args()
+ if parsed.destination is None and not parsed.install:
+ logger.error('At least one of --install or --destination is required')
+ sys.exit(2)
+
if parsed.shortname is None:
parser.print_help()
sys.exit(0)
--
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