Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Add more command-line arguments

AuthorDaveJarvis <email>
Date2021-12-10 21:58:57 GMT-0800
Commit80878358eeff4be8133970a61a1d3f6a14ca8e63
Parent874240f
Delta18 lines added, 0 lines removed, 18-line increase
src/main/java/com/keenwrite/cmdline/Arguments.java
public final class Arguments implements Callable<Integer> {
@CommandLine.Option(
+ names = {"-a", "--all"},
+ description =
+ "Concatenate files in directory before processing (${DEFAULT-VALUE}).",
+ defaultValue = "false"
+ )
+ private boolean mAll;
+
+ @CommandLine.Option(
names = {"-d", "--debug"},
description =
)
private boolean mQuiet;
+
+ @CommandLine.Option(
+ names = {"-t", "--theme"},
+ description =
+ "Theme to use when exporting (${DEFAULT-VALUE}).",
+ paramLabel = "FILE",
+ defaultValue = "tarmes"
+ )
+ private String mTheme;
@CommandLine.Option(
src/main/java/com/keenwrite/cmdline/HeadlessApp.java
*/
public static void main( final Arguments args ) {
+ System.out.println( args );
}
}