Skip to content

Commit d7591e2

Browse files
committed
ditch structopt in favor of clap 3.0 beta1
It's bascially the same, but should make getting size improvements way easier.
1 parent 0a4b0f3 commit d7591e2

File tree

5 files changed

+108
-75
lines changed

5 files changed

+108
-75
lines changed

Diff for: Cargo.lock

+62-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ light = ["fast", "lean-cli", "git-features/interruptible"]
3535
small = ["lean-cli"]
3636

3737
fast = ["git-features/parallel", "git-features/fast-sha1"]
38-
pretty-cli = ["structopt",
38+
pretty-cli = ["clap",
3939
"git-features/progress-prodash",
4040
"git-features/interruptible",
4141
"gitoxide-core/serde1",
@@ -61,7 +61,7 @@ anyhow = "1.0.31"
6161
gitoxide-core = { version = "0.1.0", path = "gitoxide-core" }
6262
git-features = { version = "^0.2.0", path = "git-features" }
6363

64-
structopt = { version = "0.3.14", optional = true }
64+
clap = { version = "3.0.0-beta.1", optional = true }
6565
argh = { version = "0.1.3", optional = true, default-features = false }
6666
prodash = { version = "7.0.2", optional = true, default-features = false }
6767
atty = { version = "0.2.14", optional = true, default-features = false }

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ The top-level command-line interface.
245245
* If disabled, the binary will be visibly smaller.
246246
* _(mutually exclusive)_
247247
* **pretty-cli**
248-
* Use `clap` + `structopt` to build the prettiest, best documented and most user-friendly CLI at the expense of file size.
248+
* Use `clap` 3.0 to build the prettiest, best documented and most user-friendly CLI at the expense of file size.
249249
* provides a terminal user interface for detailed and exhaustive progress.
250250
* provides a line renderer for log-like progress
251251
* **lean-cli**

0 commit comments

Comments
 (0)