Skip to content

Commit

Permalink
added javadoc since notations to all new API methods for this feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsharpe committed Dec 19, 2023
1 parent 5af6e2b commit c90bbfb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/picocli/CommandLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,7 @@ public CommandLine setUnmatchedOptionsArePositionalParams(boolean newValue) {
/** Returns whether positional parameters on the command line are allowed to occur before the special End of Options delimiter.
* The default is {@code true}.
* @return {@code true} positional parameters may occur anywhere on the command line, {@code false} if they must follow End of Options.
* @since 4.8.0
*/
public boolean isParameterAllowedBeforeEndOfOptions() {
return getCommandSpec().parser().parameterAllowedBeforeEndOfOptions();
Expand All @@ -1120,6 +1121,7 @@ public boolean isParameterAllowedBeforeEndOfOptions() {
* subcommands, call the setter last, after adding subcommands.</p>
* @param newValue the new setting. When {@code false}, positional parameters must follow the special End of Options delimiter.
* @return this {@code CommandLine} object, to allow method chaining
* @since 4.8.0
*/
public CommandLine setParameterAllowedBeforeEndOfOptions(boolean newValue) {
getCommandSpec().parser().parameterAllowedBeforeEndOfOptions(newValue);
Expand Down Expand Up @@ -8691,7 +8693,9 @@ public boolean useSimplifiedAtFiles() {
public ParserSpec unmatchedOptionsAllowedAsOptionParameters(boolean unmatchedOptionsAllowedAsOptionParameters) { this.unmatchedOptionsAllowedAsOptionParameters = unmatchedOptionsAllowedAsOptionParameters; return this; }
/** @see CommandLine#setUnmatchedOptionsArePositionalParams(boolean) */
public ParserSpec unmatchedOptionsArePositionalParams(boolean unmatchedOptionsArePositionalParams) { this.unmatchedOptionsArePositionalParams = unmatchedOptionsArePositionalParams; return this; }
/** @see CommandLine#setParameterAllowedBeforeEndOfOptions(boolean) */
/**
* @see CommandLine#setParameterAllowedBeforeEndOfOptions(boolean)
* @since 4.8.0*/
public ParserSpec parameterAllowedBeforeEndOfOptions(boolean allowParametersBeforeEndOfOptions) { this.parameterAllowedBeforeEndOfOptions = allowParametersBeforeEndOfOptions; return this; }
/**
* @see CommandLine#setAllowSubcommandsAsOptionParameters(boolean)
Expand Down

0 comments on commit c90bbfb

Please sign in to comment.