@Command(name="region_chooser",mixinStandardHelpOptions=true,version="regionChooser 0.2.9",description="Extracts a region from one or more citygmls.",sortOptions=false)
@Command(name="region_chooser",mixinStandardHelpOptions=true,description="Extracts a region from one or more citygmls.",sortOptions=false,versionProvider=GetVersion.class)
classRegionChooserCLIimplementsCallable<Integer>
{
@Spec
CommandSpecspec;
//TODO: Add --gui?
@Option(names={"-i",
"--input"},required=true,split=",",description="Citygml files to extract from",paramLabel="input.gml")
//TODO: Allow folders too?
Path[]citygmls;
@Option(names={"-o",
...
...
@@ -122,6 +121,13 @@ public Integer call() throws Exception {
return0;
}
// this example implements Callable, so parsing, error handling and handling user
// requests for usage help or version help can be done with one line of code.