Skip to content

Commit

Permalink
Use defaultValue annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
snf2ye committed Aug 29, 2023
1 parent 3b54d6e commit 8a092c9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cli/src/main/java/bio/terra/pfb/JavaPfbCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ public class JavaPfbCommand implements Runnable {
description =
"[OPTIONAL] Option to run for given command (Options include: schema, metadata, nodes. If not defined for the show command, the row data will be returned.)",
defaultValue = "tableRows")
private PfbCommandOption option = TABLE_ROWS;

@Option(
names = {"-i", "--input"},
description = "Input file value")
Expand All @@ -38,8 +36,9 @@ public class JavaPfbCommand implements Runnable {
names = {"-n", "--limit"},
description =
"How many records to show, ignored for sub-commands.\n"
+ " [default: no limit]")
private int limit = -1;
+ " [default: no limit]",
defaultValue = "-1")
private int limit;

public static void main(String[] args) {
int exitCode = executeCommand(args);
Expand Down

0 comments on commit 8a092c9

Please sign in to comment.