From f0c83d35fe96129f6ba444ff3a50bf6a0e917d50 Mon Sep 17 00:00:00 2001 From: Rob Greene Date: Sun, 9 Jan 2022 18:08:36 -0600 Subject: [PATCH] Adding an auxtype flag to acx. #55 --- .../applecommander/acx/command/ImportCommand.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/cli-acx/src/main/java/io/github/applecommander/acx/command/ImportCommand.java b/app/cli-acx/src/main/java/io/github/applecommander/acx/command/ImportCommand.java index 555a751..bcf4393 100644 --- a/app/cli-acx/src/main/java/io/github/applecommander/acx/command/ImportCommand.java +++ b/app/cli-acx/src/main/java/io/github/applecommander/acx/command/ImportCommand.java @@ -89,6 +89,7 @@ public class ImportCommand extends ReadWriteDiskCommandOptions { .filename(overrides.fileName) .prodosFiletype(overrides.fileType) .binaryAddress(overrides.fileAddress) + .auxiliaryType(overrides.auxType) .build(processorReader); copier.copyFile(directory, reader); @@ -317,14 +318,20 @@ public class ImportCommand extends ReadWriteDiskCommandOptions { } public static class Overrides { - @Option(names = { "-t", "--type" }, description = "File type.") + @Option(names = { "-t", "--type" }, description = "ProDOS File type. " + + "(Each filesystem translates between it's native types and ProDOS.)") private Optional fileType; - @Option(names = { "-a", "--addr" }, description = "File address.", + @Option(names = { "-a", "--addr" }, description = "File address. " + + "(Note that address may only be set on file types that use address.)", converter = IntegerTypeConverter.class) private Optional fileAddress; @Option(names = { "-n", "--name" }, description = "File name.") private Optional fileName; + + @Option(names = { "--aux", "--auxtype" }, description = "Aux. Type. " + + "(For a filesystem that supports aux type.)") + private Optional auxType; } }