Skip to content

Commit

Permalink
Fixing default value for insert param
Browse files Browse the repository at this point in the history
* For boolean param JCommander by default interprets the option to have arity 0.
  Therefore a param is not specified for '--insert' option.
  If the option is provided the value is set to true. Hence setting the
  default param value to false.
  • Loading branch information
maheshp committed Jun 17, 2020
1 parent 957d461 commit 972d96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/thoughtworks/go/dbsync/cli/Args.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class Args {
public String outputFile;

@Parameter(names = {"--insert", "-i"}, description = "Perform INSERT into target database.", order = 1200)
public boolean insert = true;
public boolean insert = false;

@Parameter(names = {"--progress", "-p"}, description = "Show progress of the export operation", order = 1300)
public boolean progress = false;
Expand Down

0 comments on commit 972d96d

Please sign in to comment.