mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-17 12:16:17 +00:00
nohup: update to clap 4
This commit is contained in:
parent
4b574d6228
commit
405e5fba67
2 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ edition = "2021"
|
|||
path = "src/nohup.rs"
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "3.2", features = ["wrap_help", "cargo"] }
|
||||
clap = { version = "4.0", features = ["wrap_help", "cargo"] }
|
||||
libc = "0.2.135"
|
||||
atty = "0.2"
|
||||
uucore = { version=">=0.0.16", package="uucore", path="../../uucore", features=["fs"] }
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#[macro_use]
|
||||
extern crate uucore;
|
||||
|
||||
use clap::{crate_version, Arg, Command};
|
||||
use clap::{crate_version, Arg, ArgAction, Command};
|
||||
use libc::{c_char, dup2, execvp, signal};
|
||||
use libc::{SIGHUP, SIG_IGN};
|
||||
use std::env;
|
||||
|
@ -114,7 +114,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn uu_app<'a>() -> Command<'a> {
|
||||
pub fn uu_app() -> Command {
|
||||
Command::new(uucore::util_name())
|
||||
.version(crate_version!())
|
||||
.about(ABOUT)
|
||||
|
@ -124,7 +124,7 @@ pub fn uu_app<'a>() -> Command<'a> {
|
|||
Arg::new(options::CMD)
|
||||
.hide(true)
|
||||
.required(true)
|
||||
.multiple_occurrences(true)
|
||||
.action(ArgAction::Append)
|
||||
.value_hint(clap::ValueHint::CommandName),
|
||||
)
|
||||
.trailing_var_arg(true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue