mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-01-31 02:52:14 +00:00
Allow escaped chars
This commit is contained in:
parent
01cd0269d5
commit
8504a61225
@ -440,9 +440,7 @@ impl Command for SendCommand {
|
|||||||
|
|
||||||
// Check for a single argument that can be parsed as JSON
|
// Check for a single argument that can be parsed as JSON
|
||||||
let send_args = if args.len() == 1 {
|
let send_args = if args.len() == 1 {
|
||||||
// Sometimes on the command line, people use "'" for the quotes, which json::parse doesn't
|
let arg_list = args[0];
|
||||||
// understand. So replace it with double-quotes
|
|
||||||
let arg_list = args[0].replace("'", "\"");
|
|
||||||
|
|
||||||
let json_args = match json::parse(&arg_list) {
|
let json_args = match json::parse(&arg_list) {
|
||||||
Ok(j) => j,
|
Ok(j) => j,
|
||||||
|
Loading…
Reference in New Issue
Block a user