Skip to content

Commit

Permalink
fix: fixes bug where one can't override version flag
Browse files Browse the repository at this point in the history
Closes #514
  • Loading branch information
kbknapp committed May 30, 2016
1 parent 9ff6e9e commit c9f8a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ impl<'a, 'b> Parser<'a, 'b>
sdebugln!("Help");
try!(self._help());
}
if arg == "version" && self.settings.is_set(AppSettings::NeedsLongVersion) {
if arg == "version" && !self.settings.is_set(AppSettings::NeedsLongVersion) {
sdebugln!("Version");
try!(self._version());
}
Expand Down

0 comments on commit c9f8a3a

Please sign in to comment.