mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 04:25:03 +02:00
Add long options for formats (#10645)
This commit is contained in:
@ -62,7 +62,7 @@ impl Command for FromOds {
|
||||
},
|
||||
Example {
|
||||
description: "Convert binary .ods data to a table, specifying the tables",
|
||||
example: "open --raw test.ods | from ods -s [Spreadsheet1]",
|
||||
example: "open --raw test.ods | from ods --sheets [Spreadsheet1]",
|
||||
result: None,
|
||||
},
|
||||
]
|
||||
|
@ -53,7 +53,7 @@ impl Command for FromSsv {
|
||||
)),
|
||||
}, Example {
|
||||
example: r#"'FOO BAR
|
||||
1 2' | from ssv -n"#,
|
||||
1 2' | from ssv --noheaders"#,
|
||||
description: "Converts ssv formatted string to table but not treating the first row as column names",
|
||||
result: Some(
|
||||
Value::list(
|
||||
|
@ -93,7 +93,7 @@ impl Command for FromTsv {
|
||||
},
|
||||
Example {
|
||||
description: "Create a tsv file without header columns and open it",
|
||||
example: r#"$'a1(char tab)b1(char tab)c1(char nl)a2(char tab)b2(char tab)c2' | save tsv-data | open tsv-data | from tsv -n"#,
|
||||
example: r#"$'a1(char tab)b1(char tab)c1(char nl)a2(char tab)b2(char tab)c2' | save tsv-data | open tsv-data | from tsv --noheaders"#,
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
|
@ -62,7 +62,7 @@ impl Command for FromXlsx {
|
||||
},
|
||||
Example {
|
||||
description: "Convert binary .xlsx data to a table, specifying the tables",
|
||||
example: "open --raw test.xlsx | from xlsx -s [Spreadsheet1]",
|
||||
example: "open --raw test.xlsx | from xlsx --sheets [Spreadsheet1]",
|
||||
result: None,
|
||||
},
|
||||
]
|
||||
|
Reference in New Issue
Block a user