Commit 2d3911cd authored by Bram Schoenmakers's avatar Bram Schoenmakers

Print the getopt error.

parent c5b9ede5
......@@ -73,7 +73,8 @@ class Command(object):
def getopt(self, p_flags, p_long=[]):
try:
result = getopt.getopt(self.args, p_flags, p_long)
except getopt.GetoptError:
except getopt.GetoptError as e:
self.error(str(e))
result = ([],self.args)
return result
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment