linkreport command stub

This commit is contained in:
Jindra Petřík
2024-01-21 16:16:21 +01:00
parent a34f9b1565
commit ea1881d263
2 changed files with 55 additions and 1 deletions

View File

@@ -0,0 +1,53 @@
package com.jpexs.decompiler.flash.cli.commands;
import com.jpexs.decompiler.flash.cli.VersionProvider;
import com.jpexs.decompiler.flash.cli.commands.types.CompressionKind;
import com.jpexs.decompiler.flash.cli.commands.types.ReplaceFormat;
import java.util.List;
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;
import picocli.CommandLine.ParentCommand;
import picocli.CommandLine.ArgGroup;
/**
*
* @author JPEXS
*/
@Command(
name = "linkreport",
mixinStandardHelpOptions = true,
versionProvider = VersionProvider.class,
header = "Generate linker report for the swffile",
optionListHeading = "%n@|bold,underline Options|@:%n",
parameterListHeading = "%n@|bold,underline Parameters|@:%n",
synopsisHeading = "@|bold,underline Usage|@:",
footerHeading = "%n@|bold,underline Examples|@:%n",
footer = {
"ffdec-cli linkreport input.swf",
"ffdec-cli linkreport --out-file=out.xml input.swf"
},
sortSynopsis = false
)
public class LinkReport implements Runnable {
@Option(
names = "--out-file",
paramLabel = "<outFile>",
description = "Saves XML report to <outFile>. When ommited, the report is printed to stdout."
)
String outFile = null;
@Parameters(
index = "0",
paramLabel = "IN_FILE",
description = "Input file"
)
String inFile;
@Override
public void run() {
}
}

View File

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