Properly scope getopt for subcommands.