Tweaked complete function to handle cases where a flag appears before subcommand name
Tweaked complete function to handle cases where a flag appears before subcommand name

python-cmd2/cmd2,python-cmd2/cmd2