mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 11:35:43 +02:00
Add long options for conversions (#10602)
As discussed in https://github.com/nushell/nushell/pull/10597#issuecomment-1745692687 I've also removed one failing example for `into string`. It was simply printed in the docs without context, and the expected result was commented out.
This commit is contained in:
@ -85,18 +85,18 @@ impl Command for Fill {
|
||||
Example {
|
||||
description:
|
||||
"Fill a string on the left side to a width of 15 with the character '─'",
|
||||
example: "'nushell' | fill -a l -c '─' -w 15",
|
||||
example: "'nushell' | fill --alignment l --character '─' --width 15",
|
||||
result: Some(Value::string("nushell────────", Span::test_data())),
|
||||
},
|
||||
Example {
|
||||
description:
|
||||
"Fill a string on the right side to a width of 15 with the character '─'",
|
||||
example: "'nushell' | fill -a r -c '─' -w 15",
|
||||
example: "'nushell' | fill --alignment r --character '─' --width 15",
|
||||
result: Some(Value::string("────────nushell", Span::test_data())),
|
||||
},
|
||||
Example {
|
||||
description: "Fill a string on both sides to a width of 15 with the character '─'",
|
||||
example: "'nushell' | fill -a m -c '─' -w 15",
|
||||
example: "'nushell' | fill --alignment m --character '─' --width 15",
|
||||
result: Some(Value::string("────nushell────", Span::test_data())),
|
||||
},
|
||||
Example {
|
||||
|
Reference in New Issue
Block a user