jbossas/jboss-as — pull request #2846 by Mogztter (2012-08-09 17:48:28+00:00)
Title: AS7-1459 Add debug flag in the --help output and make the standalone scripts more robust.

The -d / --debug flag can be at any place in the list of arguments.
eg :
```sh
./standalone.sh -c=standalone-ha.xml -d -b 0.0.0.0 # debug on port 8787
./standalone.bat -b 0.0.0.0 --debug 9797 # debug on port 9797
```

The debug flag is now removed from the command line arguments to send only the server arguments to the java main class.

As requested by Brian Stansberry the --help output now print for the debug flag :
```
--debug [] Activate debug mode with an optional
argument to specify the port. Only
works if the launch script supports it.

-d [] Activate debug mode with an optional
argument to specify the port. Only
works if the launch script supports it.
```