Skip to content

Commit

Permalink
fix: should not expose --frozen --locked
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederick888 committed Aug 15, 2017
1 parent 9c4293d commit d056fd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ There are a few options for using `cargo-outdated` which should be somewhat self
```
USAGE:
cargo outdated [FLAGS] [OPTIONS]
FLAGS:
--all-features Check outdated packages with all features enabled
--frozen Require Cargo.lock and cache are up to date
-h, --help Prints help information
--locked Require Cargo.lock is up to date
--no-default-features Do not include the `default` feature
-q, --quiet Coloring: auto, always, never
-R, --root-deps-only Only check root dependencies (Equivalent to --depth=1)
-V, --version Prints version information
-v, --verbose Use verbose output
OPTIONS:
--color <color> Coloring: auto, always, never [default: auto]
[values: auto, always, never]
Expand Down
16 changes: 2 additions & 14 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
///
/// FLAGS:
/// --all-features Check outdated packages with all features enabled
/// --frozen Require Cargo.lock and cache are up to date
/// -h, --help Prints help information
/// --locked Require Cargo.lock is up to date
/// --no-default-features Do not include the `default` feature
/// -q, --quiet Coloring: auto, always, never
/// -R, --root-deps-only Only check root dependencies (Equivalent to --depth=1)
Expand Down Expand Up @@ -85,8 +83,8 @@ impl Options {
None
},
flag_verbose: m.occurrences_of("verbose") as u32,
flag_frozen: m.is_present("frozen"),
flag_locked: m.is_present("locked"),
flag_frozen: false,
flag_locked: false,
flag_exit_code: m.value_of("exit-code")
.and_then(|v| v.parse().ok())
.unwrap_or_else(|| 0_i32),
Expand Down Expand Up @@ -231,16 +229,6 @@ fn main() {
.value_name("PATH")
.number_of_values(1)
.validator(is_file),
)
.arg(
Arg::with_name("frozen")
.long("frozen")
.help("Require Cargo.lock and cache are up to date"),
)
.arg(
Arg::with_name("locked")
.long("locked")
.help("Require Cargo.lock is up to date"),
),
)
.get_matches();
Expand Down

0 comments on commit d056fd0

Please sign in to comment.