Skip to content

Commit d14a25d

Browse files
committed
Add arity=1 to the boolean options in the main option class
1 parent 9663154 commit d14a25d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/sqlancer/MainOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class MainOptions {
7373
@Parameter(names = "--test-only-nonempty-tables", description = "Test only databases each of whose tables contain at least a single row", arity = 1)
7474
private boolean testOnlyWithMoreThanZeroRows; // NOPMD
7575

76-
@Parameter(names = "--pqs-test-aggregates", description = "Partially test aggregate functions when all tables contain only a single row.")
76+
@Parameter(names = "--pqs-test-aggregates", description = "Partially test aggregate functions when all tables contain only a single row.", arity = 1)
7777
private boolean testAggregateFunctions; // NOPMD
7878

7979
@Parameter(names = "--random-string-generation", description = "Select the random-string eneration approach")
@@ -82,10 +82,10 @@ public class MainOptions {
8282
@Parameter(names = "--string-constant-max-length", description = "Specify the maximum-length of generated string constants")
8383
private int maxStringConstantLength = 10; // NOPMD
8484

85-
@Parameter(names = "--use-constant-caching", description = "Specifies whether constants should be cached and re-used with a certain probability")
85+
@Parameter(names = "--use-constant-caching", description = "Specifies whether constants should be cached and re-used with a certain probability", arity = 1)
8686
private boolean useConstantCaching = true; // NOPMD
8787

88-
@Parameter(names = "--use-connection-test", description = "Test whether the DBMS is accessible before trying to connect using multiple threads")
88+
@Parameter(names = "--use-connection-test", description = "Test whether the DBMS is accessible before trying to connect using multiple threads", arity = 1)
8989
private boolean useConnectionTest = true; // NOPMD
9090

9191
@Parameter(names = "--constant-cache-size", description = "Specifies the size of the constant cache. This option only takes effect when constant caching is enabled")

0 commit comments

Comments
 (0)