If I pass in an option that is used by the
org.jboss.modules.Main entrypoint used by the wildfly/bin start scripts, the server exits with an error. For example, if I try to enable a new module dependency using -deps:
```bash
[starksm@scottryzen bin]$ bin/standalone.sh -deps com.sun.ts
bash: bin/standalone.sh: No such file or directory
[starksm@scottryzen bin]$ ./standalone.sh -deps com.sun.ts
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/starksm/Dev/Jakarta/wildflytckroot/wildfly/dist/target/wildfly-34.0.0.Beta1-SNAPSHOT
JAVA: /usr/lib/jvm/java-17-openjdk/bin/java
JAVA_OPTS: Djdk.serialFilter="maxbytes=10485760;maxdepth=128;maxarray=100000;maxrefs=300000" -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.url.ldap=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.url.ldaps=ALL-UNNAMED --add-exports=jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.naming/javax.naming=ALL-UNNAMED -Djava.security.manager=allow
=========================================================================
14:59:35,123 INFO [org.jboss.modules] (main) JBoss Modules version 2.1.5.Final
WFLYSRV0073: Invalid option '-deps'
Usage: standalone.sh [args...]
where args include:
--admin-only Set the server's running type to
ADMIN_ONLY causing it to open
administrative interfaces and accept
management requests but not start other
runtime services or accept end user
requests. Cannot be used in conjunction
with --start-mode. Deprecated; use
--start-mode=admin-only instead.
-b <value>, -b=<value> Set system property jboss.bind.address
to the given value
-b<interface>=<value> Set system property
jboss.bind.address.<interface> to the
given value
-c <config>, -c=<config> Name of the server configuration file
to use (default is "standalone.xml")
(Same as --server-config)
--debug [<port>] Activate debug mode with an optional
argument to specify the port. Only
works if the launch script supports it.
-D<name>[=<value>] Set a system property
-h, --help Display this message and exit
--read-only-server-config=<config> Name of the server configuration file
to use. This differs from
'--server-config' and '-c' in that the
original file is never overwritten.
-P <url>, -P=<url>, Load system properties from the given
--properties=<url> url
-S<name>[=<value>] Set a security property
--server-config=<config> Name of the server configuration file
to use (default is "standalone.xml")
(Same as -c)
-u <value>, -u=<value> Set system property
jboss.default.multicast.address to the
given value
-v, -V, --version Print version and exit
-secmgr Runs the server with a security manager
installed.
--start-mode Sets the start mode of the server, it
can be either 'normal','admin-only' or
'suspend'. If this is 'suspend' the
server will start in suspended mode,
and will not service requests until it
has been resumed. If this is started in
admin-only mode the server will only
open administrative interfaces and
accept management requests but not
start other runtime services or accept
end user requests. Cannot be used in
conjunction with --admin-only.
--graceful-startup=<value> Start the server gracefully, queuing or
cleanly rejecting requests until the
server is fully started
--git-repo <repo_url>, The git repository to clone to get the
--git-repo=<repo_url> server configuration.
--git-branch <branch>, The git branch to use to get the server
--git-branch=<branch> configuration. Default is 'master'
--git-auth <auth_config>, The elytron configuration file for
--git-auth=<auth_config> managing git credentials. Default is
'null'
--yaml=[<paths>], -y=[<paths>] The yaml configuration files for
customizing the configuration. Paths
can be absolute, relative to the
current execution directory or relative
to the standalone configuration
directory.
--stability=<value> Runs the server using a specific
stability level. Possible values:
[default, community, preview,
experimental], Default = community
14:59:35,451 FATAL [org.jboss.as.server] (main) WFLYSRV0239: Aborting with exit code 1
```