bug fix when SkipFlagParsing is false and SkipArgReorder is true

Signed-off-by: Shukui Yang <yangshukui@huawei.com>
This commit is contained in:
Shukui Yang 2016-09-12 21:30:33 +08:00
parent 61f519fe5e
commit 5d108a4435

View File

@ -128,6 +128,8 @@ func (c Command) Run(ctx *Context) (err error) {
} else {
err = set.Parse(ctx.Args().Tail())
}
} else {
err = set.Parse(ctx.Args().Tail())
}
if err != nil {