mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
tsort: clap 3
This commit is contained in:
parent
e62fdb9307
commit
49e5412580
2 changed files with 4 additions and 8 deletions
|
@ -15,7 +15,7 @@ edition = "2018"
|
|||
path = "src/tsort.rs"
|
||||
|
||||
[dependencies]
|
||||
clap= "2.33"
|
||||
clap = { version = "3.0", features = ["wrap_help", "cargo"] }
|
||||
uucore = { version=">=0.0.10", package="uucore", path="../../uucore" }
|
||||
uucore_procs = { version=">=0.0.7", package="uucore_procs", path="../../uucore_procs" }
|
||||
|
||||
|
|
|
@ -93,16 +93,12 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn uu_app() -> App<'static, 'static> {
|
||||
pub fn uu_app<'a>() -> App<'a> {
|
||||
App::new(uucore::util_name())
|
||||
.version(crate_version!())
|
||||
.usage(USAGE)
|
||||
.override_usage(USAGE)
|
||||
.about(SUMMARY)
|
||||
.arg(
|
||||
Arg::with_name(options::FILE)
|
||||
.default_value("-")
|
||||
.hidden(true),
|
||||
)
|
||||
.arg(Arg::new(options::FILE).default_value("-").hide(true))
|
||||
}
|
||||
|
||||
// We use String as a representation of node here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue