Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
v0.1.6: Add --drop-row-if-null=COL flag (fixes #9)
Browse files Browse the repository at this point in the history
We now support a `--drop-row-if-null=COL` flag which can be used to
automatically discard certain lines when particular columns are NULL.
This argument can be passed more than once to check more than one
column, and it is applied _after_ will normalize NULLs as specified by
`--null`.

In order to implement this, we had to switch from `docopt` (a deprecated
argument parser) to `structopt` (the recommended replacement).
  • Loading branch information
emk committed Oct 24, 2019
1 parent 44264dc commit 677e9ad
Show file tree
Hide file tree
Showing 4 changed files with 254 additions and 141 deletions.
124 changes: 99 additions & 25 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scrubcsv"
version = "0.1.5"
version = "0.1.6"
authors = ["Eric Kidd <[email protected]>"]
edition = "2018"

Expand All @@ -16,8 +16,8 @@ homepage = "https://github.com/faradayio/scrubcsv"
opt-level = 3

[dependencies]
clap = "2.33.0"
csv = "1"
docopt = "1"
env_logger = "0.7"
error-chain = "0.12"
humansize = "1.0.1"
Expand All @@ -26,7 +26,7 @@ libc = "0.2.18"
log = "0.4"
regex = "1"
serde = "1.0"
serde_derive = "1.0"
structopt = "0.3.3"
time = "0.1.35"

[dev-dependencies]
Expand Down
Loading

0 comments on commit 677e9ad

Please sign in to comment.