fix option parsing with multiple subcommands containing '[options]'

this is issue 85.