125
140
// Subcommands embed ModelCommandBase and have an extra
126
141
// "[options]" prepended before the args.
127
142
cmdInfo = s.command.Info()
129
144
regexp.QuoteMeta(cmdInfo.Name) +
130
145
`( \[options\])? ` + regexp.QuoteMeta(cmdInfo.Args) + ".+"
133
148
`( \[options\])? ` + regexp.QuoteMeta(cmdInfo.Args) + ".+"
135
150
c.Check(cmdInfo, gc.NotNil)
136
151
c.Check(stderr, gc.Matches, expected)
139
154
c.Check(stderr, gc.Matches, expected)
142
157
c.Check(stderr, gc.Matches, expected)