diff options
author | Michele Simionato <michele.simionato@gmail.com> | 2010-05-29 16:51:26 +0200 |
---|---|---|
committer | Michele Simionato <michele.simionato@gmail.com> | 2010-05-29 16:51:26 +0200 |
commit | 17707396104fc76282e333e53c4b4a9b9ef6a957 (patch) | |
tree | 8f4011f547ab69801b5077629ac72f06ebc5482d | |
parent | b6e16e1287c71749a01c60c9385eed6598d0ba92 (diff) | |
download | micheles-17707396104fc76282e333e53c4b4a9b9ef6a957.tar.gz |
Fixed another small bug
-rw-r--r-- | clap/clap.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clap/clap.py b/clap/clap.py index 8f2f76d..74d1d34 100644 --- a/clap/clap.py +++ b/clap/clap.py @@ -143,9 +143,8 @@ class OptionParser(object): action = 'store_true' short, long_, help, default=match_flag.group( "short", "long", "help") + (False,) - else: # raise an error - raise ParsingError( - "Cannot parse the definition %r correctly" % line) + else: # cannot parse the definition correctly + continue # add the options long_ = long_.replace('-', '_') self.p.add_option("-" + short, "--" + long_, |