Merge pull request #149 from guggero/quote-fix

cmd/loop: remove number of flags restriction
This commit is contained in:
Alex Bosworth 2020-02-06 11:11:39 -08:00 committed by GitHub
commit e8dce9e67f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,9 +36,8 @@ var quoteCommand = cli.Command{
}
func quote(ctx *cli.Context) error {
// Show command help if the incorrect number arguments and/or flags were
// provided.
if ctx.NArg() != 1 || ctx.NumFlags() > 1 {
// Show command help if the incorrect number arguments was provided.
if ctx.NArg() != 1 {
return cli.ShowCommandHelp(ctx, "quote")
}