mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
lightning-cli: document the real argument handling (for special effects).
And fix it to pass through decimals like the man page promises! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -276,7 +276,7 @@ static bool is_literal(const char *arg)
|
||||
if (arglen == 0) {
|
||||
return false;
|
||||
}
|
||||
return strspn(arg, "0123456789") == arglen
|
||||
return strspn(arg, "0123456789.") == arglen
|
||||
|| streq(arg, "true")
|
||||
|| streq(arg, "false")
|
||||
|| streq(arg, "null")
|
||||
|
||||
Reference in New Issue
Block a user