mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
Merge pull request #1598 from sylvestre/nproc
cleanup(nproc): remove some artifacts from the clap migration
This commit is contained in:
commit
4a041f95e3
2 changed files with 2 additions and 4 deletions
|
@ -15,7 +15,6 @@ edition = "2018"
|
||||||
path = "src/nproc.rs"
|
path = "src/nproc.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
getopts = "0.2.18"
|
|
||||||
libc = "0.2.42"
|
libc = "0.2.42"
|
||||||
num_cpus = "1.10"
|
num_cpus = "1.10"
|
||||||
clap = "2.33"
|
clap = "2.33"
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// spell-checker:ignore (ToDO) NPROCESSORS nprocs numstr threadstr sysconf
|
// spell-checker:ignore (ToDO) NPROCESSORS nprocs numstr threadstr sysconf
|
||||||
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
extern crate getopts;
|
|
||||||
extern crate num_cpus;
|
extern crate num_cpus;
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
|
@ -48,13 +47,13 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name(OPT_ALL)
|
Arg::with_name(OPT_ALL)
|
||||||
.short("")
|
.short("")
|
||||||
.long("all")
|
.long(OPT_ALL)
|
||||||
.help("print the number of cores available to the system"),
|
.help("print the number of cores available to the system"),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name(OPT_IGNORE)
|
Arg::with_name(OPT_IGNORE)
|
||||||
.short("")
|
.short("")
|
||||||
.long("ignore")
|
.long(OPT_IGNORE)
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.help("ignore up to N cores"),
|
.help("ignore up to N cores"),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue