Skip to content

Commit

Permalink
Don't require values for boolean options
Browse files Browse the repository at this point in the history
fixes #107
  • Loading branch information
sethreno committed Jan 28, 2017
1 parent 0a1e682 commit 88b3896
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions console/BaseCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ protected BaseCommand(string command, string oneLineDescription) {
"Path to database script directory.",
o => ScriptDir = o);
HasOption(
"o|overwrite=",
"o|overwrite",
"Overwrite existing target without prompt.",
o => Overwrite = o != null);
HasOption(
"v|verbose=",
"v|verbose",
"Enable verbose log messages.",
o => Verbose = o != null);
HasOption(
Expand Down
4 changes: 2 additions & 2 deletions console/Compare.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public Compare() {
"Create a sql diff file in the specified path.",
o => _outDiff = o);
HasOption(
"o|overwrite=",
"o|overwrite",
"Overwrite existing target without prompt.",
o => _overwrite = o != null);
HasOption(
"v|verbose=",
"v|verbose",
"Enable verbose mode (show detailed changes).",
o => _verbose = o != null);
}
Expand Down

0 comments on commit 88b3896

Please sign in to comment.