add "-0" as short for --headerless in "from" commands (#3042)

* replace --headerless flags with --noheaders / -n

* Update from_csv.rs

Co-authored-by: Jonathan Turner <jonathandturner@users.noreply.github.com>
This commit is contained in:
Saeed Rasooli
2021-02-22 10:55:17 +03:30
committed by GitHub
parent b5ae024cc8
commit 42d18d2294
12 changed files with 61 additions and 56 deletions

View File

@ -64,7 +64,7 @@ fn table_to_csv_text_skipping_headers_after_conversion() {
| str trim
| split column "," a b c d origin
| last 1
| to csv --headerless
| to csv --noheaders
"#
));
@ -198,7 +198,7 @@ fn from_csv_text_skipping_headers_to_table() {
cwd: dirs.test(), pipeline(
r#"
open los_tres_amigos.txt
| from csv --headerless
| from csv --noheaders
| get Column3
| count
"#

View File

@ -72,7 +72,7 @@ fn from_ssv_text_treating_first_line_as_data_with_flag() {
cwd: dirs.test(), pipeline(
r#"
open oc_get_svc.txt
| from ssv --headerless -a
| from ssv --noheaders -a
| first
| get Column1
"#
@ -82,7 +82,7 @@ fn from_ssv_text_treating_first_line_as_data_with_flag() {
cwd: dirs.test(), pipeline(
r#"
open oc_get_svc.txt
| from ssv --headerless
| from ssv --noheaders
| first
| get Column1

View File

@ -70,7 +70,7 @@ fn table_to_tsv_text_skipping_headers_after_conversion() {
| lines
| split column "\t" a b c d origin
| last 1
| to tsv --headerless
| to tsv --noheaders
"#
));
@ -121,7 +121,7 @@ fn from_tsv_text_skipping_headers_to_table() {
cwd: dirs.test(), pipeline(
r#"
open los_tres_amigos.txt
| from tsv --headerless
| from tsv --noheaders
| get Column3
| count
"#