Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbski-rga committed Aug 2, 2022
1 parent 7cb035e commit 9ec41e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/commands/cat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ use walkdir::WalkDir;
#[derive(Parser, Debug)]
pub struct CatCommandArgs {
/// Use CSV format for printing
#[clap(short, long, conflicts_with_all = &["csv-no-header","json"])]
#[clap(short, long, conflicts_with = "json")]
csv: bool,

/// Use CSV format without a header for printing
#[clap(long = "no-header", requires = "csv", conflicts_with = "json")]
csv_no_header: bool,

/// Use JSON lines format for printing
#[clap(short, long, conflicts_with_all = &["csv", "csv-no-header"])]
#[clap(short, long, conflicts_with = "csv")]
json: bool,

/// Parquet files or folders to read from
Expand All @@ -35,8 +35,6 @@ pub(crate) fn execute(opts: CatCommandArgs) -> Result<(), PQRSError> {
Formats::CsvNoHeader
} else if opts.csv {
Formats::Csv
} else if opts.csv_no_header {
Formats::CsvNoHeader
} else {
Formats::Default
};
Expand Down

0 comments on commit 9ec41e4

Please sign in to comment.