Supporting with Command-Line arguments

When no user-provided main(..) is available (see Container), the default Swarm main supports a handful of command-line arguments to the -swarm.jar:

Argument Description Default

-D<name> or -D<name>=<value>

Define a Java system property.

none

-P<file-or-url>

Location of a Java .properties file to use as system properties.

none

-b <addr>

Bind the public listeners to an address.

0.0.0.0 (all)

-c <file-or-url>

Specify an XML configuration file (such as standalone.xml or a fragment of such).

none

-s <file-or-url>

Specify a project-defaults.yml

project-defaults.yml from the application classpath, if available.

-S <active-profile>

Name of profile to activate from a project-[profile].yml file (see -s).

none

--help or -h

Display relevant help, including any known project-defaults.yml keys (see -s).

n/a

--version or -v

Display the version of WildFly Swarm being used.

n/a