The ordering of multiple options on the command line is not generally important.
gw -d/tmp/mydb -index
is the same as gw -index -d/tmp/mydb
Multiple options may NOT be combined. And there must be a space between each option.
gw -y -g -a
gw -yga
gw -y-g-a
There must not be any space between an option and its parameter (if any).
gw -d/tmp/testdb
gw -d /tmp/testdb
Case is significant.
-h
is different than -H
The URL(s) or SQL statement must be the last thing on the command line, after any options.