Skip to content

Commit 60e1fd2

Browse files
committed
cmd/loop: remove number of flags restriction
With the restriction in place, it is not possible to use the --conf_target and --fast flag at the same time. To avoid similar problems in the future, the check for the number of amounts is removed completely.
1 parent 7b4eb6e commit 60e1fd2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/loop/quote.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ var quoteCommand = cli.Command{
3636
}
3737

3838
func quote(ctx *cli.Context) error {
39-
// Show command help if the incorrect number arguments and/or flags were
40-
// provided.
41-
if ctx.NArg() != 1 || ctx.NumFlags() > 1 {
39+
// Show command help if the incorrect number arguments was provided.
40+
if ctx.NArg() != 1 {
4241
return cli.ShowCommandHelp(ctx, "quote")
4342
}
4443

0 commit comments

Comments
 (0)