forked from extern/nushell
Use long options for string (#10777)
This commit is contained in:
@ -202,17 +202,17 @@ impl Command for Char {
|
||||
},
|
||||
Example {
|
||||
description: "Output Unicode character",
|
||||
example: r#"char -u 1f378"#,
|
||||
example: r#"char --unicode 1f378"#,
|
||||
result: Some(Value::test_string("\u{1f378}")),
|
||||
},
|
||||
Example {
|
||||
description: "Create Unicode from integer codepoint values",
|
||||
example: r#"char -i (0x60 + 1) (0x60 + 2)"#,
|
||||
example: r#"char --integer (0x60 + 1) (0x60 + 2)"#,
|
||||
result: Some(Value::test_string("ab")),
|
||||
},
|
||||
Example {
|
||||
description: "Output multi-byte Unicode character",
|
||||
example: r#"char -u 1F468 200D 1F466 200D 1F466"#,
|
||||
example: r#"char --unicode 1F468 200D 1F466 200D 1F466"#,
|
||||
result: Some(Value::test_string(
|
||||
"\u{1F468}\u{200D}\u{1F466}\u{200D}\u{1F466}",
|
||||
)),
|
||||
|
Reference in New Issue
Block a user