From 60e1fd2481acfaa243ce900f984f16543c100ae1 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Thu, 6 Feb 2020 14:03:53 +0100 Subject: [PATCH] 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. --- cmd/loop/quote.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/loop/quote.go b/cmd/loop/quote.go index ad4e409..a776423 100644 --- a/cmd/loop/quote.go +++ b/cmd/loop/quote.go @@ -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") }