diff options
author | Marius Mauch <genone@gentoo.org> | 2007-05-31 01:26:33 +0000 |
---|---|---|
committer | Marius Mauch <genone@gentoo.org> | 2007-05-31 01:26:33 +0000 |
commit | 28b09fcc5b0b45fbea9725e68e87b58d49cbe197 (patch) | |
tree | fceda45e68584241a9fe6d6b834b430aed1006f1 | |
parent | 3d0a0dbd105c9346b6dc3ac1205f00453c2e7b51 (diff) | |
download | portage-28b09fcc5b0b45fbea9725e68e87b58d49cbe197.tar.gz portage-28b09fcc5b0b45fbea9725e68e87b58d49cbe197.tar.bz2 portage-28b09fcc5b0b45fbea9725e68e87b58d49cbe197.zip |
catch GetoptError
svn path=/main/trunk/; revision=6684
-rwxr-xr-x | bin/ebuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ebuild b/bin/ebuild index 80feb3563..442dd4644 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -12,7 +12,11 @@ if len(sys.argv) <= 2: sys.exit(1) -opts, pargs = getopt.getopt(sys.argv[1:], '', ['debug', 'force']) +try: + opts, pargs = getopt.getopt(sys.argv[1:], '', ['debug', 'force']) +except getopt.GetoptError, e: + print e + sys.exit(1) debug = ("--debug",'') in opts force = ("--force",'') in opts |