Browse Source

lightning-cli: consider empty inputs to be strings

ppa-0.6.1
Corné Plooy 6 years ago
committed by Christian Decker
parent
commit
f1df9dfa4d
  1. 3
      cli/lightning-cli.c

3
cli/lightning-cli.c

@ -145,6 +145,9 @@ static char *opt_set_ordered(enum input *input)
static bool is_literal(const char *arg)
{
size_t arglen = strlen(arg);
if (arglen == 0) {
return false;
}
return strspn(arg, "0123456789") == arglen
|| streq(arg, "true")
|| streq(arg, "false")

Loading…
Cancel
Save