There are some small issues with the interface.
The interface should show the longer version of the argument when longer argument is used.
[akrajcik@akrajcik bin]$ ./jboss-server-migration.sh --interactive Missing argument for option: i usage: jboss-server-migration [-e <environment file>] [-h] [-i <true/false>] [-s <source>] [-t <target>] -e,--environment <environment file> Path to the properties file containing the user environment. -h,--help jboss-server-migration -i,--interactive <true/false> Indicates if the migration tool should interact (or not) with the user. Value should either be true or false. -s,--source <source> Path to the base dir of the server to migrate from. -t,--target <target> Path to the base dir of the server to migrate to.
Other issue is with when server-migration-tool starts with only a small statement that extra arguments are discarded and goes on without any error.
[akrajcik@akrajcik bin]$ ./jboss-server-migration.sh -s ../../jboss-eap-6.4/ -i false extra
Argument(s), [extra], will be discarded.
----------------------------------------------------------
---- JBoss Server Migration Tool -----------------------
----------------------------------------------------------
Retrieving servers...
10:29:14,106 INFO [logger] SOURCE server name: EAP, version: 6.4.0.GA.
10:29:14,111 INFO [logger] TARGET server name: JBoss EAP, version: 7.1.0.GA.
- clones
-
JBEAP-12874 Server migration tool should abort if unknown arguments are used
- Closed