mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-22 01:06:15 +00:00
Cli help - add minus for commands
This commit is contained in:
@@ -559,7 +559,6 @@
|
||||
<copy todir="${dist.dir}">
|
||||
<fileset dir="${resources.dir}" includes="**/*.*"/>
|
||||
<fileset dir="${resources.dir}" includes="ffdec"/>
|
||||
<fileset dir="${resources.dir}" includes="ffdec-cli"/>
|
||||
</copy>
|
||||
<copy todir="${dist.dir}" file="${changelog.file}"/>
|
||||
<fixcrlf srcdir="${dist.dir}" includes="**/*.md" eol="crlf" preservelastmodified="true" />
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This is a comment, it starts with "#".
|
||||
|
||||
# Uncomment following and set it to higher value if you want more memory
|
||||
# You need 64 bit OS and 64 bit java to set it to higher values
|
||||
# FFDEC_MEMORY=1024m
|
||||
|
||||
# Uncomment following when you encounter StackOverFlowErrors.
|
||||
# If the app then terminates with OutOfMemory you can experiment with lower value.
|
||||
# FFDEC_STACK_SIZE=32m
|
||||
|
||||
# Hide VLC error output
|
||||
export VLC_VERBOSE=-1
|
||||
export FFDEC_JARFILENAME=ffdec.jar
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
exec $SCRIPT_DIR/run-java.sh "$@"
|
||||
exec $SCRIPT_DIR/ffdec.sh "$@"
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This is a comment, it starts with "#".
|
||||
|
||||
# Uncomment following and set it to higher value if you want more memory
|
||||
# You need 64 bit OS and 64 bit java to set it to higher values
|
||||
# FFDEC_MEMORY=1024m
|
||||
|
||||
# Uncomment following when you encounter StackOverFlowErrors.
|
||||
# If the app then terminates with OutOfMemory you can experiment with lower value.
|
||||
# FFDEC_STACK_SIZE=32m
|
||||
|
||||
# Hide VLC error output
|
||||
export VLC_VERBOSE=-1
|
||||
export FFDEC_JARFILENAME=ffdec-cli.jar
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
exec $SCRIPT_DIR/run-java.sh "$@"
|
||||
@@ -1,21 +0,0 @@
|
||||
@echo off
|
||||
rem This is a comment, it starts with "rem".
|
||||
|
||||
rem Uncomment following and set it to higher value if you want more memory:
|
||||
rem You need 64 bit OS and 64 bit java to set it to higher values
|
||||
rem set FFDEC_MEMORY=1024m
|
||||
|
||||
rem Uncomment following when you encounter StackOverFlowErrors.
|
||||
rem If the app then terminates with OutOfMemory you can experiment with lower value.
|
||||
rem set FFDEC_STACK_SIZE=32m
|
||||
|
||||
rem Hide VLC error output
|
||||
set VLC_VERBOSE=-1
|
||||
|
||||
if "%FFDEC_MEMORY%"=="" set FFDEC_MEMORY=1024m
|
||||
set STACK_SIZE_PARAM=
|
||||
set MEMORY_PARAM=
|
||||
if not "%FFDEC_STACK_SiZE%"=="" set STACK_SIZE_PARAM= -Xss%FFDEC_STACK_SiZE%
|
||||
if not "%FFDEC_MEMORY%"=="" set MEMORY_PARAM=-Xmx%FFDEC_MEMORY%
|
||||
|
||||
java %MEMORY_PARAM%%STACK_SIZE_PARAM%-Djna.nosys=true -jar "%~dp0\ffdec-cli.jar" %*
|
||||
@@ -19,4 +19,4 @@ set MEMORY_PARAM=
|
||||
if not "%FFDEC_STACK_SiZE%"=="" set STACK_SIZE_PARAM= -Xss%FFDEC_STACK_SiZE%
|
||||
if not "%FFDEC_MEMORY%"=="" set MEMORY_PARAM=-Xmx%FFDEC_MEMORY%
|
||||
|
||||
java %MEMORY_PARAM%%STACK_SIZE_PARAM%-Djna.nosys=true -jar "%~dp0\ffdec.jar" %*
|
||||
java %MEMORY_PARAM%%STACK_SIZE_PARAM%-Djna.nosys=true -jar "%~dp0\ffdec.jar" %*
|
||||
|
||||
@@ -10,8 +10,127 @@
|
||||
# If the app then terminates with OutOfMemory you can experiment with lower value.
|
||||
# FFDEC_STACK_SIZE=32m
|
||||
|
||||
|
||||
# Hide VLC error output
|
||||
export VLC_VERBOSE=-1
|
||||
export FFDEC_JARFILENAME=ffdec.jar
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
exec $SCRIPT_DIR/run-java.sh "$@"
|
||||
|
||||
# FFDec requires Oracle Java 8
|
||||
# Look for java in these directories
|
||||
LOOKUP_JRE_DIRS="/usr/lib/jvm/* /opt/java* /opt/jre*"
|
||||
# Required version
|
||||
REQ_JVER1=1
|
||||
REQ_JVER2=8
|
||||
REQ_JVER3=0
|
||||
REQ_JVER4=0
|
||||
|
||||
|
||||
if [ -z ${FFDEC_JARFILENAME+x} ]; then
|
||||
FFDEC_JARFILENAME=ffdec.jar
|
||||
fi
|
||||
|
||||
search_jar_file() {
|
||||
JAR_FILE_CANDIDATES="./${FFDEC_JARFILENAME} ../dist/${FFDEC_JARFILENAME} /usr/share/java/${FFDEC_JARFILENAME} /usr/share/java/ffdec/${FFDEC_JARFILENAME} /usr/share/java/jpexs-decompiler/${FFDEC_JARFILENAME}"
|
||||
for f in $JAR_FILE_CANDIDATES ; do
|
||||
[ -r "$f" ] && JAR_FILE="$f" && return 0
|
||||
done
|
||||
echo Unable to find ${FFDEC_JARFILE} in the following locations:
|
||||
echo "${JAR_FILE_CANDIDATES// /$'\n'}"
|
||||
return 1
|
||||
}
|
||||
|
||||
check_java_version () {
|
||||
JVER1=$(echo $JAVA_VERSION_OUTPUT | sed 's/java version "\([0-9]*\)\.[0-9]*\.[0-9]*\(_[0-9]*\)\?".*/\1/')
|
||||
JVER2=$(echo $JAVA_VERSION_OUTPUT | sed 's/java version "[0-9]*\.\([0-9]*\)\.[0-9]*\(_[0-9]*\)\?".*/\1/')
|
||||
JVER3=$(echo $JAVA_VERSION_OUTPUT | sed 's/java version "[0-9]*\.[0-9]*\.\([0-9]*\)\(_[0-9]*\)\?".*/\1/')
|
||||
JVER4=$(echo $JAVA_VERSION_OUTPUT | sed 's/java version "[0-9]*\.[0-9]*\.[0-9]*\(_\([0-9]*\)\)\?".*/\2/' | sed 's/^$/0/')
|
||||
|
||||
if [ "$JVER1" -gt $REQ_JVER1 ]; then
|
||||
return 0
|
||||
elif [ "$JVER1" -lt $REQ_JVER1 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ "$JVER2" -gt $REQ_JVER2 ]; then
|
||||
return 0
|
||||
elif [ "$JVER2" -lt $REQ_JVER2 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ "$JVER3" -gt $REQ_JVER3 ]; then
|
||||
return 0
|
||||
elif [ "$JVER3" -lt $REQ_JVER3 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ "$JVER4" -lt $REQ_JVER4 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
# Handle symlinks
|
||||
PROGRAM="$0"
|
||||
while [ -L "$PROGRAM" ]; do
|
||||
PROGRAM=$(readlink -f "$PROGRAM")
|
||||
done
|
||||
pushd "$(dirname "$PROGRAM")" > /dev/null
|
||||
|
||||
search_jar_file || exit 1
|
||||
|
||||
if [ "${JAR_FILE:0:1}" != '/' ] ; then
|
||||
JAR_FILE=$(pwd)/$JAR_FILE
|
||||
fi
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
if [ -z ${FFDEC_MEMORY+x} ]; then
|
||||
FFDEC_MEMORY=1024m
|
||||
fi
|
||||
|
||||
STACK_SIZE_PARAM=""
|
||||
MEMORY_PARAM=""
|
||||
if [ -n "$FFDEC_STACK_SIZE" ]; then
|
||||
STACK_SIZE_PARAM=" -Xss$FFDEC_STACK_SIZE"
|
||||
fi
|
||||
if [ -n "$FFDEC_MEMORY" ]; then
|
||||
MEMORY_PARAM=" -Xmx$FFDEC_MEMORY"
|
||||
fi
|
||||
|
||||
args=(-Djava.net.preferIPv4Stack=true${MEMORY_PARAM}${STACK_SIZE_PARAM} -jar $JAR_FILE "$@")
|
||||
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
args=(-Xdock:name=FFDec -Xdock:icon=icon.png "${args[@]}")
|
||||
fi
|
||||
|
||||
# Check default java
|
||||
if [ -x "$(which java)" ]; then
|
||||
JAVA_VERSION_OUTPUT=$(java -version 2>&1)
|
||||
JAVA_VERSION_OUTPUT=$(echo $JAVA_VERSION_OUTPUT | sed 's/openjdk version/java version/')
|
||||
check_java_version && exec java "${args[@]}"
|
||||
fi
|
||||
|
||||
# Test other possible Java locations
|
||||
for JRE_PATH in $LOOKUP_JRE_DIRS; do
|
||||
if [ -x "$JRE_PATH/bin/java" ]; then
|
||||
JAVA_VERSION_OUTPUT=$("$JRE_PATH/bin/java" -version 2>&1)
|
||||
JAVA_VERSION_OUTPUT=`echo $JAVA_VERSION_OUTPUT | sed 's/openjdk version/java version/'`
|
||||
check_java_version && {
|
||||
export JRE_PATH
|
||||
exec "$JRE_PATH/bin/java" "${args[@]}"
|
||||
}
|
||||
fi
|
||||
done
|
||||
|
||||
# Failed
|
||||
if [ -x "$(which xmessage)" ]; then
|
||||
xmessage -nearmouse -file - <<EOF
|
||||
Failed to find a suitable java version.
|
||||
Required: $REQ_JVER1.$REQ_JVER2.$REQ_JVER3.$REQ_JVER4 or newer.
|
||||
EOF
|
||||
else
|
||||
echo Failed to find a suitable java version.
|
||||
echo Required: $REQ_JVER1.$REQ_JVER2.$REQ_JVER3.$REQ_JVER4 or newer.
|
||||
fi
|
||||
|
||||
exit 1
|
||||
|
||||
@@ -1,132 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This is a comment, it starts with "#".
|
||||
|
||||
# Uncomment following and set it to higher value if you want more memory
|
||||
# You need 64 bit OS and 64 bit java to set it to higher values
|
||||
# FFDEC_MEMORY=1024m
|
||||
|
||||
# Uncomment following when you encounter StackOverFlowErrors.
|
||||
# If the app then terminates with OutOfMemory you can experiment with lower value.
|
||||
# FFDEC_STACK_SIZE=32m
|
||||
|
||||
# FFDec requires Oracle Java 8
|
||||
# Look for java in these directories
|
||||
LOOKUP_JRE_DIRS="/usr/lib/jvm/* /opt/java* /opt/jre*"
|
||||
# Required version
|
||||
REQ_JVER1=1
|
||||
REQ_JVER2=8
|
||||
REQ_JVER3=0
|
||||
REQ_JVER4=0
|
||||
|
||||
|
||||
if [ -z ${FFDEC_JARFILENAME+x} ]; then
|
||||
FFDEC_JARFILENAME=ffdec.jar
|
||||
fi
|
||||
|
||||
search_jar_file() {
|
||||
JAR_FILE_CANDIDATES="./${FFDEC_JARFILENAME} ../dist/${FFDEC_JARFILENAME} /usr/share/java/${FFDEC_JARFILENAME} /usr/share/java/ffdec/${FFDEC_JARFILENAME} /usr/share/java/jpexs-decompiler/${FFDEC_JARFILENAME}"
|
||||
for f in $JAR_FILE_CANDIDATES ; do
|
||||
[ -r "$f" ] && JAR_FILE="$f" && return 0
|
||||
done
|
||||
echo Unable to find ${FFDEC_JARFILE} in the following locations:
|
||||
echo "${JAR_FILE_CANDIDATES// /$'\n'}"
|
||||
return 1
|
||||
}
|
||||
|
||||
check_java_version () {
|
||||
JVER1=$(echo $JAVA_VERSION_OUTPUT | sed 's/java version "\([0-9]*\)\.[0-9]*\.[0-9]*\(_[0-9]*\)\?".*/\1/')
|
||||
JVER2=$(echo $JAVA_VERSION_OUTPUT | sed 's/java version "[0-9]*\.\([0-9]*\)\.[0-9]*\(_[0-9]*\)\?".*/\1/')
|
||||
JVER3=$(echo $JAVA_VERSION_OUTPUT | sed 's/java version "[0-9]*\.[0-9]*\.\([0-9]*\)\(_[0-9]*\)\?".*/\1/')
|
||||
JVER4=$(echo $JAVA_VERSION_OUTPUT | sed 's/java version "[0-9]*\.[0-9]*\.[0-9]*\(_\([0-9]*\)\)\?".*/\2/' | sed 's/^$/0/')
|
||||
|
||||
if [ "$JVER1" -gt $REQ_JVER1 ]; then
|
||||
return 0
|
||||
elif [ "$JVER1" -lt $REQ_JVER1 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ "$JVER2" -gt $REQ_JVER2 ]; then
|
||||
return 0
|
||||
elif [ "$JVER2" -lt $REQ_JVER2 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ "$JVER3" -gt $REQ_JVER3 ]; then
|
||||
return 0
|
||||
elif [ "$JVER3" -lt $REQ_JVER3 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ "$JVER4" -lt $REQ_JVER4 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
# Handle symlinks
|
||||
PROGRAM="$0"
|
||||
while [ -L "$PROGRAM" ]; do
|
||||
PROGRAM=$(readlink -f "$PROGRAM")
|
||||
done
|
||||
pushd "$(dirname "$PROGRAM")" > /dev/null
|
||||
|
||||
search_jar_file || exit 1
|
||||
|
||||
if [ "${JAR_FILE:0:1}" != '/' ] ; then
|
||||
JAR_FILE=$(pwd)/$JAR_FILE
|
||||
fi
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
if [ -z ${FFDEC_MEMORY+x} ]; then
|
||||
FFDEC_MEMORY=1024m
|
||||
fi
|
||||
|
||||
STACK_SIZE_PARAM=""
|
||||
MEMORY_PARAM=""
|
||||
if [ -n "$FFDEC_STACK_SIZE" ]; then
|
||||
STACK_SIZE_PARAM=" -Xss$FFDEC_STACK_SIZE"
|
||||
fi
|
||||
if [ -n "$FFDEC_MEMORY" ]; then
|
||||
MEMORY_PARAM=" -Xmx$FFDEC_MEMORY"
|
||||
fi
|
||||
|
||||
args=(-Djava.net.preferIPv4Stack=true${MEMORY_PARAM}${STACK_SIZE_PARAM} -jar $JAR_FILE "$@")
|
||||
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
args=(-Xdock:name=FFDec -Xdock:icon=icon.png "${args[@]}")
|
||||
fi
|
||||
|
||||
# Check default java
|
||||
if [ -x "$(which java)" ]; then
|
||||
JAVA_VERSION_OUTPUT=$(java -version 2>&1)
|
||||
JAVA_VERSION_OUTPUT=$(echo $JAVA_VERSION_OUTPUT | sed 's/openjdk version/java version/')
|
||||
check_java_version && exec java "${args[@]}"
|
||||
fi
|
||||
|
||||
# Test other possible Java locations
|
||||
for JRE_PATH in $LOOKUP_JRE_DIRS; do
|
||||
if [ -x "$JRE_PATH/bin/java" ]; then
|
||||
JAVA_VERSION_OUTPUT=$("$JRE_PATH/bin/java" -version 2>&1)
|
||||
JAVA_VERSION_OUTPUT=`echo $JAVA_VERSION_OUTPUT | sed 's/openjdk version/java version/'`
|
||||
check_java_version && {
|
||||
export JRE_PATH
|
||||
exec "$JRE_PATH/bin/java" "${args[@]}"
|
||||
}
|
||||
fi
|
||||
done
|
||||
|
||||
# Failed
|
||||
if [ -x "$(which xmessage)" ]; then
|
||||
xmessage -nearmouse -file - <<EOF
|
||||
Failed to find a suitable java version.
|
||||
Required: $REQ_JVER1.$REQ_JVER2.$REQ_JVER3.$REQ_JVER4 or newer.
|
||||
EOF
|
||||
else
|
||||
echo Failed to find a suitable java version.
|
||||
echo Required: $REQ_JVER1.$REQ_JVER2.$REQ_JVER3.$REQ_JVER4 or newer.
|
||||
fi
|
||||
|
||||
exit 1
|
||||
@@ -1,105 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Based on Freerapid Downloader startup script - created by Petris 2009
|
||||
|
||||
# FFDec requires Oracle Java 8
|
||||
# Look for java in these directories
|
||||
LOOKUP_JRE_DIRS="/usr/lib/jvm/* /opt/java* /opt/jre*"
|
||||
# Required version
|
||||
REQ_JVER1=1
|
||||
REQ_JVER2=8
|
||||
REQ_JVER3=0
|
||||
REQ_JVER4=0
|
||||
|
||||
search_jar_file() {
|
||||
JAR_FILE_CANDIDATES='./ffdec.jar ../dist/ffdec.jar /usr/share/java/ffdec.jar /usr/share/java/ffdec/ffdec.jar /usr/share/java/jpexs-decompiler/ffdec.jar'
|
||||
for f in $JAR_FILE_CANDIDATES ; do
|
||||
[ -r "$f" ] && JAR_FILE="$f" && return 0
|
||||
done
|
||||
echo Unable to find ffdec.jar in the following locations:
|
||||
echo "${JAR_FILE_CANDIDATES// /$'\n'}"
|
||||
return 1
|
||||
}
|
||||
|
||||
check_java_version () {
|
||||
JVER1=`echo $JAVA_VERSION_OUTPUT | sed 's/java version "\([0-9]*\)\.[0-9]*\.[0-9]*_[0-9]*".*/\1/'`
|
||||
JVER2=`echo $JAVA_VERSION_OUTPUT | sed 's/java version "[0-9]*\.\([0-9]*\)\.[0-9]*_[0-9]*".*/\1/'`
|
||||
JVER3=`echo $JAVA_VERSION_OUTPUT | sed 's/java version "[0-9]*\.[0-9]*\.\([0-9]*\)_[0-9]*".*/\1/'`
|
||||
JVER4=`echo $JAVA_VERSION_OUTPUT | sed 's/java version "[0-9]*\.[0-9]*\.[0-9]*_\([0-9]*\)".*/\1/'`
|
||||
|
||||
if [ $JVER1 -gt $REQ_JVER1 ]; then
|
||||
return 0
|
||||
elif [ $JVER1 -lt $REQ_JVER1 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ $JVER2 -gt $REQ_JVER2 ]; then
|
||||
return 0
|
||||
elif [ $JVER2 -lt $REQ_JVER2 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ $JVER3 -gt $REQ_JVER3 ]; then
|
||||
return 0
|
||||
elif [ $JVER3 -lt $REQ_JVER3 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ $JVER4 -lt $REQ_JVER4 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
# Handle symlinks
|
||||
PROGRAM="$0"
|
||||
while [ -L "$PROGRAM" ]; do
|
||||
PROGRAM=`readlink -f "$PROGRAM"`
|
||||
done
|
||||
pushd "`dirname \"$PROGRAM\"`" > /dev/null
|
||||
|
||||
search_jar_file || exit 1
|
||||
|
||||
if [ ${JAR_FILE:0:1} != '/' ] ; then
|
||||
JAR_FILE=`pwd`/$JAR_FILE
|
||||
fi
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
args=(-jar $JAR_FILE -translator)
|
||||
|
||||
if [ "`uname`" = "Darwin" ]; then
|
||||
args=(-Xdock:name=FFDec -Xdock:icon=icon.png "${args[@]}")
|
||||
fi
|
||||
|
||||
# Check default java
|
||||
if [ -x "`which java`" ]; then
|
||||
JAVA_VERSION_OUTPUT=`java -version 2>&1`
|
||||
JAVA_VERSION_OUTPUT=`echo $JAVA_VERSION_OUTPUT | sed 's/openjdk version/java version/'`
|
||||
check_java_version && exec java "${args[@]}"
|
||||
fi
|
||||
|
||||
# Test other possible Java locations
|
||||
for JRE_PATH in $LOOKUP_JRE_DIRS; do
|
||||
if [ -x "$JRE_PATH/bin/java" ]; then
|
||||
JAVA_VERSION_OUTPUT=`"$JRE_PATH/bin/java" -version 2>&1`
|
||||
JAVA_VERSION_OUTPUT=`echo $JAVA_VERSION_OUTPUT | sed 's/openjdk version/java version/'`
|
||||
check_java_version && {
|
||||
export JRE_PATH
|
||||
exec $JRE_PATH/bin/java "${args[@]}"
|
||||
}
|
||||
fi
|
||||
done
|
||||
|
||||
# Failed
|
||||
if [ -x "`which xmessage`" ]; then
|
||||
xmessage -nearmouse -file - <<EOF
|
||||
Failed to find a suitable java version.
|
||||
Required: $REQ_JVER1.$REQ_JVER2.$REQ_JVER3_$REQ_JVER4 or newer.
|
||||
EOF
|
||||
else
|
||||
echo Failed to find a suitable java version.
|
||||
echo Required: $REQ_JVER1.$REQ_JVER2.$REQ_JVER3_$REQ_JVER4 or newer.
|
||||
fi
|
||||
|
||||
exit 1
|
||||
export FFDEC_JARFILENAME=ffdec.jar
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
exec $SCRIPT_DIR/ffdec.sh translator
|
||||
|
||||
@@ -335,7 +335,14 @@ public class CommandLineArgumentParser {
|
||||
|
||||
public static void printCmdLineUsage(PrintStream out, boolean webHelp, String filter) {
|
||||
int cnt = 1;
|
||||
out.println("@|underline,bold Usage|@: @|bold ffdec-cli|@ [PRE-OPTIONS] [COMMAND]");
|
||||
out.println("@|underline,bold Usage|@: @|bold <executable>|@ [PRE-OPTIONS] [COMMAND]");
|
||||
out.println();
|
||||
out.println("@|underline,bold Executable|@:");
|
||||
out.println(" Linux: ffdec or ffdec.sh");
|
||||
out.println(" Mac OS: ffdec.sh");
|
||||
out.println(" Windows: ffdec-cli.exe or ffdec.bat");
|
||||
out.println(" Java: java -jar ffdec.jar");
|
||||
out.println();
|
||||
out.println("@|underline,bold Commands|@:");
|
||||
if (filter == null) {
|
||||
out.println("@|bold -help|@ | @|bold --help|@ | @|bold /?|@");
|
||||
@@ -347,13 +354,13 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("proxy")) {
|
||||
out.println("@|bold proxy|@ [-P<port>]");
|
||||
out.println("@|bold -proxy|@ [-P<port>]");
|
||||
out.println(" auto start proxy in the tray. Optional parameter -P specifies port for proxy. Defaults to 55555. ");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("export")) {
|
||||
out.println("@|bold export|@ <itemtypes> <outdirectory> <infile_or_directory>");
|
||||
out.println("@|bold -export|@ <itemtypes> <outdirectory> <infile_or_directory>");
|
||||
out.println(" export <infile_or_directory> sources to <outdirectory>.");
|
||||
out.println(" Exports all files from <infile_or_directory> when it is a folder.");
|
||||
out.println(" Values for <itemtypes> parameter:");
|
||||
@@ -380,61 +387,61 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("dumpswf")) {
|
||||
out.println("@|bold dumpSWF|@ <infile>");
|
||||
out.println("@|bold -dumpSWF|@ <infile>");
|
||||
out.println(" dumps list of SWF tags to console");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("dumpas2")) {
|
||||
out.println("@|bold dumpAS2|@ <infile>");
|
||||
out.println("@|bold -dumpAS2|@ <infile>");
|
||||
out.println(" dumps list of AS1/2 scripts to console");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("dumpas3")) {
|
||||
out.println("@|bold dumpAS3|@ <infile>");
|
||||
out.println("@|bold -dumpAS3|@ <infile>");
|
||||
out.println(" dumps list of AS3 scripts to console");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("compress")) {
|
||||
out.println("@|bold compress|@ <infile> <outfile> [(zlib|lzma)]");
|
||||
out.println("@|bold -compress|@ <infile> <outfile> [(zlib|lzma)]");
|
||||
out.println(" Compress SWF <infile> and save it to <outfile>. If <infile> is already compressed, it will be re-compressed. Default compression method is ZLIB");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("decompress")) {
|
||||
out.println("@|bold decompress|@ <infile> <outfile>");
|
||||
out.println("@|bold -decompress|@ <infile> <outfile>");
|
||||
out.println(" Decompress <infile> and save it to <outfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("encrypt")) {
|
||||
out.println("@|bold encrypt|@ <infile> <outfile>");
|
||||
out.println("@|bold -encrypt|@ <infile> <outfile>");
|
||||
out.println(" Encrypts file <infile> with HARMAN Air encryption and saves it to <outfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("decrypt")) {
|
||||
out.println("@|bold decrypt|@ <infile> <outfile>");
|
||||
out.println("@|bold -decrypt|@ <infile> <outfile>");
|
||||
out.println(" Decrypts HARMAN Air encrypted file <infile> and saves it to <outfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("swf2xml")) {
|
||||
out.println("@|bold swf2xml|@ <infile> <outfile>");
|
||||
out.println("@|bold -swf2xml|@ <infile> <outfile>");
|
||||
out.println(" Converts the <infile> SWF to <outfile> XML file");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("xml2swf")) {
|
||||
out.println("@|bold xml2swf|@ <infile> <outfile>");
|
||||
out.println("@|bold -xml2swf|@ <infile> <outfile>");
|
||||
out.println(" Converts the <infile> XML to <outfile> SWF file");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("extract")) {
|
||||
out.println("@|bold extract|@ <infile> [-o <outpath>|<outfile>] [nocheck] [(all|biggest|smallest|first|last)]");
|
||||
out.println("@|bold -extract|@ <infile> [-o <outpath>|<outfile>] [nocheck] [(all|biggest|smallest|first|last)]");
|
||||
out.println(" Extracts SWF files from ZIP or other binary files");
|
||||
out.println(" -o parameter should contain a file path when \"biggest\" or \"first\" parameter is specified");
|
||||
out.println(" -o parameter should contain a folder path when no extaction mode or \"all\" parameter is specified");
|
||||
@@ -442,25 +449,25 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("memorysearch")) {
|
||||
out.println("@|bold memorySearch|@ (<processName1>|<processId1>) (<processName2>|<processId2>)...");
|
||||
out.println("@|bold -memorySearch|@ (<processName1>|<processId1>) (<processName2>|<processId2>)...");
|
||||
out.println(" Search SWF files in the memory");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("renameinvalididentifiers")) {
|
||||
out.println("@|bold renameInvalidIdentifiers|@ (typeNumber|randomWord) <infile> <outfile>");
|
||||
out.println("@|bold -renameInvalidIdentifiers|@ (typeNumber|randomWord) <infile> <outfile>");
|
||||
out.println(" Renames the invalid identifiers in <infile> and save it to <outfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("flashpaper2pdf")) {
|
||||
out.println("@|bold flashpaper2pdf|@ <infile> <outfile>");
|
||||
out.println("@|bold -flashpaper2pdf|@ <infile> <outfile>");
|
||||
out.println(" converts FlashPaper SWF file <infile> to PDF <outfile>. Use -zoom parameter to specify image quality.");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("replace")) {
|
||||
out.println("@|bold replace|@ <infile> <outfile> (<characterId1>|<scriptName1>) <importDataFile1> [nofill] ([<format1>][<methodBodyIndex1>]) [(<characterId2>|<scriptName2>) <importDataFile2> [nofill] ([<format2>][<methodBodyIndex2>])]...");
|
||||
out.println("@|bold -replace|@ <infile> <outfile> (<characterId1>|<scriptName1>) <importDataFile1> [nofill] ([<format1>][<methodBodyIndex1>]) [(<characterId2>|<scriptName2>) <importDataFile2> [nofill] ([<format2>][<methodBodyIndex2>])]...");
|
||||
out.println(" replaces the data of the specified BinaryData, Image, Shape, Text, Sound tag or Script");
|
||||
out.println(" nofill parameter can be specified only for shape replace");
|
||||
out.println(" <format> parameter can be specified for Image and Shape tags");
|
||||
@@ -468,26 +475,26 @@ public class CommandLineArgumentParser {
|
||||
out.println(" <methodBodyIndexN> parameter should be specified if and only if the imported entity is an AS3 P-Code");
|
||||
out.println(" use -1 as characterId to replace main timeline SoundStreamHead");
|
||||
|
||||
out.println("@|bold replace|@ <infile> <outfile> <argsfile>");
|
||||
out.println("@|bold -replace|@ <infile> <outfile> <argsfile>");
|
||||
out.println(" same as -replace command, but the rest of arguments is read as lines from a text file <argsfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("replacealpha")) {
|
||||
out.println("@|bold replaceAlpha|@ <infile> <outfile> <imageId1> <importDataFile1> [<imageId2> <importDataFile2>]...");
|
||||
out.println("@|bold -replaceAlpha|@ <infile> <outfile> <imageId1> <importDataFile1> [<imageId2> <importDataFile2>]...");
|
||||
out.println(" replaces the alpha channel of the specified JPEG3 or JPEG4 tag");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("replacecharacter")) {
|
||||
out.println("@|bold replaceCharacter|@ <infile> <outfile> <characterId1> <newCharacterId1> [<characterId2> <newCharacterId2>]...");
|
||||
out.println("@|bold -replaceCharacter|@ <infile> <outfile> <characterId1> <newCharacterId1> [<characterId2> <newCharacterId2>]...");
|
||||
out.println(" replaces a character tag with another character tag from the same SWF");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("replacecharacterid")) {
|
||||
out.println("@|bold replaceCharacterId|@ <infile> <outfile> <oldId1>,<newId1>,<oldId2>,<newId2>... or");
|
||||
out.println("@|bold replaceCharacterId|@ <infile> <outfile> (pack|sort)");
|
||||
out.println("@|bold -replaceCharacterId|@ <infile> <outfile> <oldId1>,<newId1>,<oldId2>,<newId2>... or");
|
||||
out.println("@|bold -replaceCharacterId|@ <infile> <outfile> (pack|sort)");
|
||||
out.println(" replaces the <oldId1> character id with <newId1>");
|
||||
out.println(" pack: removes the spaces between the character ids (1,4,3 => 1,3,2)");
|
||||
out.println(" sort: assigns increasing IDs to the character tags + pack (1,4,3 => 1,2,3)");
|
||||
@@ -496,74 +503,74 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("remove")) {
|
||||
out.println("@|bold remove|@ <infile> <outfile> <tagNo1> [<tagNo2>]...");
|
||||
out.println("@|bold -remove|@ <infile> <outfile> <tagNo1> [<tagNo2>]...");
|
||||
out.println(" removes a tag from the SWF");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("removecharacter")) {
|
||||
out.println("@|bold removeCharacter[WithDependencies]|@ <infile> <outfile> <characterId1> [<characterId2>]...");
|
||||
out.println("@|bold -removeCharacter[WithDependencies]|@ <infile> <outfile> <characterId1> [<characterId2>]...");
|
||||
out.println(" removes a character tag from the SWF");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("importsymbolclass")) {
|
||||
out.println("@|bold importSymbolClass|@ <infile> <outfile> <symbolclassfile>");
|
||||
out.println("@|bold -importSymbolClass|@ <infile> <outfile> <symbolclassfile>");
|
||||
out.println(" imports Symbol-Class mapping to <infile> and saves the result to <outfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("importmovies")) {
|
||||
out.println("@|bold importMovies|@ <infile> <outfile> <moviesfolder>");
|
||||
out.println("@|bold -importMovies|@ <infile> <outfile> <moviesfolder>");
|
||||
out.println(" imports movies to <infile> and saves the result to <outfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("importsounds")) {
|
||||
out.println("@|bold importSounds|@ <infile> <outfile> <soundsfolder>");
|
||||
out.println("@|bold -importSounds|@ <infile> <outfile> <soundsfolder>");
|
||||
out.println(" imports sounds to <infile> and saves the result to <outfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("importshapes")) {
|
||||
out.println("@|bold importShapes|@ <infile> <outfile> [nofill] <shapesfolder>");
|
||||
out.println("@|bold -importShapes|@ <infile> <outfile> [nofill] <shapesfolder>");
|
||||
out.println(" imports shapes to <infile> and saves the result to <outfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("importimages")) {
|
||||
out.println("@|bold importImages|@ <infile> <outfile> <imagesfolder>");
|
||||
out.println("@|bold -importImages|@ <infile> <outfile> <imagesfolder>");
|
||||
out.println(" imports images to <infile> and saves the result to <outfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("importsprites")) {
|
||||
out.println("@|bold importSprites|@ <infile> <outfile> <spritesfolder>");
|
||||
out.println("@|bold -importSprites|@ <infile> <outfile> <spritesfolder>");
|
||||
out.println(" imports sprites to <infile> and saves the result to <outfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("importtext")) {
|
||||
out.println("@|bold importText|@ <infile> <outfile> <textsfolder>");
|
||||
out.println("@|bold -importText|@ <infile> <outfile> <textsfolder>");
|
||||
out.println(" imports texts to <infile> and saves the result to <outfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("importscript")) {
|
||||
out.println("@|bold importScript|@ <infile> <outfile> <scriptsfolder>");
|
||||
out.println("@|bold -importScript|@ <infile> <outfile> <scriptsfolder>");
|
||||
out.println(" imports scripts to <infile> and saves the result to <outfile>");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("deobfuscate")) {
|
||||
out.println("@|bold deobfuscate|@ <level> <infile> <outfile>");
|
||||
out.println("@|bold -deobfuscate|@ <level> <infile> <outfile>");
|
||||
out.println(" Deobfuscates AS3 P-code in <infile> and saves result to <outfile>");
|
||||
out.println(" <level> can be one of: traps/2/max, deadcode/1");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("enabledebugging")) {
|
||||
out.println("@|bold enabledebugging|@ [-injectas3|-generateswd] [-pcode] <infile> <outfile>");
|
||||
out.println("@|bold -enabledebugging|@ [-injectas3|-generateswd] [-pcode] <infile> <outfile>");
|
||||
out.println(" Enables debugging for <infile> and saves result to <outfile>");
|
||||
out.println(" -injectas3 (optional) causes debugfile and debugline instructions to be injected into the code to match decompiled/pcode source.");
|
||||
out.println(" -generateswd (optional) parameter creates SWD file needed for AS1/2 debugging. for <outfile.swf>, <outfile.swd> is generated");
|
||||
@@ -573,7 +580,7 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("doc")) {
|
||||
out.println("@|bold doc|@ -type <type> [-out <outfile>] [-format <format>] [-locale <locale>]");
|
||||
out.println("@|bold -doc|@ -type <type> [-out <outfile>] [-format <format>] [-locale <locale>]");
|
||||
out.println(" Generate documentation");
|
||||
out.println(" -type <type> Selects documentation type");
|
||||
out.println(" <type> can be currently only: as3.pcode.instructions for list of ActionScript3 AVM2 instructions");
|
||||
@@ -587,7 +594,7 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("getinstancemetadata")) {
|
||||
out.println("@|bold getInstanceMetadata|@ -instance <instanceName> [-outputFormat <outputFormat>] [-key <key> ] [-datafile <datafile>] <swffile>");
|
||||
out.println("@|bold -getInstanceMetadata|@ -instance <instanceName> [-outputFormat <outputFormat>] [-key <key> ] [-datafile <datafile>] <swffile>");
|
||||
out.println(" reads instance metadata");
|
||||
out.println(" -instance <instanceName>: name of instance to fetch metadata from");
|
||||
out.println(" -outputFormat <outputFormat> (optional): format of output - one of: jslike|raw. Default is jslike.");
|
||||
@@ -598,7 +605,7 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("setinstancemetadata")) {
|
||||
out.println("@|bold setInstanceMetadata|@ -instance <instanceName> [-inputFormat <inputFormat>] [-key <key> ] [-value <value> | -datafile <datafile>] [-outfile <outFile>] <swffile>");
|
||||
out.println("@|bold -setInstanceMetadata|@ -instance <instanceName> [-inputFormat <inputFormat>] [-key <key> ] [-value <value> | -datafile <datafile>] [-outfile <outFile>] <swffile>");
|
||||
out.println(" adds metadata to instance");
|
||||
out.println(" -instance <instanceName>: name of instance to replace data in");
|
||||
out.println(" -inputFormat <inputFormat>: format of input data - one of: jslike|raw. Default is jslike.");
|
||||
@@ -613,7 +620,7 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("removeinstancemetadata")) {
|
||||
out.println("@|bold removeInstanceMetadata|@ -instance <instanceName> [-key <key> ] [-outfile <outFile>] <swffile>");
|
||||
out.println("@|bold -removeInstanceMetadata|@ -instance <instanceName> [-key <key> ] [-outfile <outFile>] <swffile>");
|
||||
out.println(" removes metadata from instance");
|
||||
out.println(" -instance <instanceName>: name of instance to remove data from");
|
||||
out.println(" - key <key> (optional): name of subkey to remove. When present, only the value from subkey <key> of the AMF object is removed.");
|
||||
@@ -624,7 +631,7 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("linkreport")) {
|
||||
out.println("@|bold linkReport|@ [-outfile <outfile>] <swffile>");
|
||||
out.println("@|bold -linkReport|@ [-outfile <outfile>] <swffile>");
|
||||
out.println(" generates linker report for the swffile");
|
||||
out.println(" -outfile <outfile> (optional): Saves XML report to <outfile>. When ommited, the report is printed to stdout.");
|
||||
out.println(" <swffile>: SWF file to search instance in");
|
||||
@@ -632,7 +639,7 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("swf2swc")) {
|
||||
out.println("@|bold swf2swc|@ <outfile> <swffile>");
|
||||
out.println("@|bold -swf2swc|@ <outfile> <swffile>");
|
||||
out.println(" generates SWC file from SWF");
|
||||
out.println(" <outfile>: Where to save SWC file");
|
||||
out.println(" <swffile>: Input SWF file");
|
||||
@@ -640,7 +647,7 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("abcmerge")) {
|
||||
out.println("@|bold abcmerge|@ <outfile> <swffile>");
|
||||
out.println("@|bold -abcmerge|@ <outfile> <swffile>");
|
||||
out.println(" merge all ABC tags in SWF file to one");
|
||||
out.println(" <outfile>: Where to save merged file");
|
||||
out.println(" <swffile>: Input SWF file");
|
||||
@@ -648,14 +655,14 @@ public class CommandLineArgumentParser {
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("swf2exe")) {
|
||||
out.println("@|bold swf2exe|@ <exportMode> <outfile> <swffile>");
|
||||
out.println("@|bold -swf2exe|@ <exportMode> <outfile> <swffile>");
|
||||
out.println(" export SWF to executable file");
|
||||
out.println(" <exportMode>: wrapper|projector_win||projector_mac|projector_linux");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("header")) {
|
||||
out.println("@|bold header|@ -set <key> <value> [-set <key2> <value2> ...] <swffile> [<outfile>]");
|
||||
out.println("@|bold -header|@ -set <key> <value> [-set <key2> <value2> ...] <swffile> [<outfile>]");
|
||||
out.println(" prints header or sets SWF header values (with -set arguments) in <swffile> and saves it to <outfile>");
|
||||
out.println(" Available keys: version");
|
||||
out.println(" gfx (true/false)");
|
||||
@@ -672,7 +679,7 @@ public class CommandLineArgumentParser {
|
||||
out.println("@|underline,bold Pre-options|@:");
|
||||
if (filter == null || filter.equals("format")) {
|
||||
out.println("@|yellow -format|@ <formats>");
|
||||
out.println(" Applies to: export COMMAND");
|
||||
out.println(" Applies to: -export COMMAND");
|
||||
out.println(" sets output formats for export");
|
||||
out.println(" Values for <formats> parameter:");
|
||||
out.println(" script:as - ActionScript source");
|
||||
@@ -734,7 +741,7 @@ public class CommandLineArgumentParser {
|
||||
|
||||
if (filter == null || filter.equals("select")) {
|
||||
out.println("@|yellow -select|@ <ranges>");
|
||||
out.println(" Applies to: export COMMAND");
|
||||
out.println(" Applies to: -export COMMAND");
|
||||
out.println(" selects frames/pages for export");
|
||||
out.println(" Example <ranges> formats:");
|
||||
out.println(" 1-5");
|
||||
@@ -751,7 +758,7 @@ public class CommandLineArgumentParser {
|
||||
|
||||
if (filter == null || filter.equals("selectclass")) {
|
||||
out.println("@|yellow -selectclass|@ <classnames>");
|
||||
out.println(" Applies to: export COMMAND");
|
||||
out.println(" Applies to: -export COMMAND");
|
||||
out.println(" selects scripts to export by class name (ActionScript 3 ONLY)");
|
||||
out.println(" <classnames> format:");
|
||||
out.println(" com.example.MyClass");
|
||||
@@ -763,7 +770,7 @@ public class CommandLineArgumentParser {
|
||||
|
||||
if (filter == null || filter.equals("exportembed")) {
|
||||
out.println("@|yellow -exportembed|@");
|
||||
out.println(" Applies to: export COMMAND");
|
||||
out.println(" Applies to: -export COMMAND");
|
||||
out.println(" Allows exporting embedded assets via [Embed tag]");
|
||||
out.println();
|
||||
}
|
||||
@@ -781,7 +788,7 @@ public class CommandLineArgumentParser {
|
||||
|
||||
if (filter == null || filter.equals("onerror")) {
|
||||
out.println("@|yellow -onerror|@ (abort|retry <N>|ignore)");
|
||||
out.println(" Applies to: export, import COMMANDs");
|
||||
out.println(" Applies to: -export, -import COMMANDs");
|
||||
out.println(" error handling mode: ");
|
||||
out.println(" \"abort\" stops the exporting");
|
||||
out.println(" \"retry\" tries the exporting N times");
|
||||
@@ -791,35 +798,35 @@ public class CommandLineArgumentParser {
|
||||
|
||||
if (filter == null || filter.equals("timeout")) {
|
||||
out.println("@|yellow -timeout|@ <N>");
|
||||
out.println(" Applies to: export COMMAND");
|
||||
out.println(" Applies to: -export COMMAND");
|
||||
out.println(" decompilation timeout for a single method in AS3 or single action in AS1/2 in seconds");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("exporttimeout")) {
|
||||
out.println("@|yellow -exportTimeout|@ <N>");
|
||||
out.println(" Applies to: export COMMAND");
|
||||
out.println(" Applies to: -export COMMAND");
|
||||
out.println(" total export timeout in seconds");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("exportfiletimeout")) {
|
||||
out.println("@|yellow -exportFileTimeout|@ <N>");
|
||||
out.println(" Applies to: export COMMAND");
|
||||
out.println(" Applies to: -export COMMAND");
|
||||
out.println(" export timeout for a single AS3 class in seconds");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("stat")) {
|
||||
out.println("@|yellow -stat|@");
|
||||
out.println(" Applies to: export COMMAND");
|
||||
out.println(" Applies to: -export COMMAND");
|
||||
out.println(" show export performance statistics");
|
||||
out.println();
|
||||
}
|
||||
|
||||
if (filter == null || filter.equals("zoom")) {
|
||||
out.println("@|yellow -zoom|@ <N>");
|
||||
out.println(" Applies to: export, flashpaper2pdf COMMANDs");
|
||||
out.println(" Applies to: -export, -flashpaper2pdf COMMANDs");
|
||||
out.println(" apply zoom during export");
|
||||
out.println();
|
||||
}
|
||||
@@ -840,7 +847,7 @@ public class CommandLineArgumentParser {
|
||||
|
||||
if (filter == null || filter.equals("air")) {
|
||||
out.println("@|yellow -air|@");
|
||||
out.println(" Applies to: replace, import COMMANDs");
|
||||
out.println(" Applies to: -replace, -import COMMANDs");
|
||||
out.println(" use AIR (airglobal.swc) for AS3 compilation instead of playerglobal.swc");
|
||||
out.println();
|
||||
}
|
||||
@@ -854,7 +861,7 @@ public class CommandLineArgumentParser {
|
||||
out.println();
|
||||
out.println("@|underline,bold Examples|@:");
|
||||
|
||||
final String PREFIX = "ffdec-cli ";
|
||||
final String PREFIX = "ffdec ";
|
||||
|
||||
boolean exampleFound = false;
|
||||
if (filter == null) {
|
||||
|
||||
Reference in New Issue
Block a user