Custom Build Options

Also, can you please give an example of how one would
set the option in the terminal?

Is it with the -Dflag just like the global build options?

Yes, you could use something like

options.addOption(bool, "flag",
    b.option(bool, "flag", "Whether to wave"));

Builder.option simply parses the specified CLI argument
and returns the value (plus generating the --help message).

3 Likes