mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-01-29 13:29:50 +00:00
Adding an auxtype flag to acx. #55
This commit is contained in:
parent
366c921ed5
commit
f0c83d35fe
@ -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<String> 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<Integer> fileAddress;
|
||||
|
||||
@Option(names = { "-n", "--name" }, description = "File name.")
|
||||
private Optional<String> fileName;
|
||||
|
||||
@Option(names = { "--aux", "--auxtype" }, description = "Aux. Type. "
|
||||
+ "(For a filesystem that supports aux type.)")
|
||||
private Optional<Integer> auxType;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user