Skip to content
This repository was archived by the owner on May 11, 2020. It is now read-only.

refactor: Do not use cargo description as default #20

Merged
merged 1 commit into from
Oct 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/derives/attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ impl Attrs {
let mut res = Self::new(name);
let attrs_with_env = [
("version", "CARGO_PKG_VERSION"),
("about", "CARGO_PKG_DESCRIPTION"),
("author", "CARGO_PKG_AUTHORS"),
];
attrs_with_env
Expand Down
3 changes: 1 addition & 2 deletions tests/author_version_about.rs → tests/author_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn no_author_version_about() {
use clap::IntoApp;

#[derive(Clap, PartialEq, Debug)]
#[clap(name = "foo", about = "", author = "", version = "")]
#[clap(name = "foo", author = "", version = "")]
struct Opt {}

let mut output = Vec::new();
Expand All @@ -34,7 +34,6 @@ fn no_author_version_about() {

static ENV_HELP: &str = "clap_derive 0.3.0
Guillaume Pinot <[email protected]>, Kevin K. <[email protected]>, hoverbear <[email protected]>
Parse command line argument by defining a struct, derive crate.

USAGE:
clap_derive
Expand Down