Hartmut getopt long

Fix for Bugzilla bug 522 <http://bugs.skysql.com/show_bug.cgi?id=552>

"Long argument pull request broke argument handling for commands"