swf2swc command stub

This commit is contained in:
Jindra Petřík
2024-01-21 16:20:01 +01:00
parent ef9451694e
commit 5d7af43805
2 changed files with 48 additions and 1 deletions

View File

@@ -57,7 +57,8 @@ import picocli.CommandLine.ScopeType;
EnableDebugging.class,
GenerateDoc.class,
InstanceMetadata.class,
LinkReport.class
LinkReport.class,
Swf2Swc.class
},
descriptionHeading = "%n@|bold,underline Description|@:%n",
optionListHeading = "%n@|bold,underline Options|@:%n",

View File

@@ -0,0 +1,46 @@
package com.jpexs.decompiler.flash.cli.commands;
import com.jpexs.decompiler.flash.cli.VersionProvider;
import com.jpexs.decompiler.flash.cli.commands.types.CompressionKind;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;
import picocli.CommandLine.ParentCommand;
/**
*
* @author JPEXS
*/
@Command(
name = "swf2swc",
mixinStandardHelpOptions = true,
versionProvider = VersionProvider.class,
header = "Generate SWC file from SWF",
parameterListHeading = "%n@|bold,underline Parameters|@:%n",
synopsisHeading = "@|bold,underline Usage|@:",
footerHeading = "%n@|bold,underline Example|@:%n",
footer = {
"ffdec-cli swf2swc input.swf output.swc",
}
)
public class Swf2Swc implements Runnable {
@Parameters(
index = "0",
paramLabel = "IN_FILE",
description = "Input file"
)
String inFile;
@Parameters(
index = "1",
paramLabel = "OUT_FILE",
description = "Output file"
)
String outFile;
@Override
public void run() {
}
}