fix flag parsing -- use flagSet after the command