Class BuildOptions
java.lang.Object
software.amazon.smithy.cli.commands.BuildOptions
- All Implemented Interfaces:
ArgumentReceiver
Arguments available to commands that load and build models.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
discover()
void
registerHelp
(HelpPrinter printer) Registers help information to the givenHelpPrinter
.boolean
testOption
(String name) Test if the given value-less option is accepted by the receiver.testParameter
(String name) Test if the given parameter that requires a value is accepted by the receiver.
-
Field Details
-
ALLOW_UNKNOWN_TRAITS
- See Also:
-
DISCOVER
- See Also:
-
DISCOVER_SHORT
- See Also:
-
DISCOVER_CLASSPATH
- See Also:
-
MODELS
- See Also:
-
-
Constructor Details
-
BuildOptions
public BuildOptions()
-
-
Method Details
-
registerHelp
Description copied from interface:ArgumentReceiver
Registers help information to the givenHelpPrinter
.- Specified by:
registerHelp
in interfaceArgumentReceiver
- Parameters:
printer
- Printer to modify.
-
testOption
Description copied from interface:ArgumentReceiver
Test if the given value-less option is accepted by the receiver.If the option is accepted, the receiver should store a stateful value to indicate the option was received, and the CLI will skip the argument for further processing.
- Specified by:
testOption
in interfaceArgumentReceiver
- Parameters:
name
- Name of the option to test.- Returns:
- Returns true if accepted.
-
testParameter
Description copied from interface:ArgumentReceiver
Test if the given parameter that requires a value is accepted by the receiver.If the parameter is accepted, the receiver returns a Consumer that receives the expected value, and it should store a stateful value to allow the value to be later recalled. The CLI will skip the argument for further processing.
- Specified by:
testParameter
in interfaceArgumentReceiver
- Parameters:
name
- Name of the parameter to test.- Returns:
- Returns a consumer if accepted or null if not accepted.
-
discoverClasspath
-
allowUnknownTraits
public boolean allowUnknownTraits() -
discover
public boolean discover()
-