mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
kill: remove table_old arg in favor of a short alias
This commit is contained in:
parent
a7cf757127
commit
53c3efecd8
1 changed files with 3 additions and 5 deletions
|
@ -26,7 +26,6 @@ pub mod options {
|
||||||
pub static PIDS_OR_SIGNALS: &str = "pids_or_signals";
|
pub static PIDS_OR_SIGNALS: &str = "pids_or_signals";
|
||||||
pub static LIST: &str = "list";
|
pub static LIST: &str = "list";
|
||||||
pub static TABLE: &str = "table";
|
pub static TABLE: &str = "table";
|
||||||
pub static TABLE_OLD: &str = "table_old";
|
|
||||||
pub static SIGNAL: &str = "signal";
|
pub static SIGNAL: &str = "signal";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +45,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
|
|
||||||
let matches = uu_app().get_matches_from(args);
|
let matches = uu_app().get_matches_from(args);
|
||||||
|
|
||||||
let mode = if matches.is_present(options::TABLE) || matches.is_present(options::TABLE_OLD) {
|
let mode = if matches.is_present(options::TABLE) {
|
||||||
Mode::Table
|
Mode::Table
|
||||||
} else if matches.is_present(options::LIST) {
|
} else if matches.is_present(options::LIST) {
|
||||||
Mode::List
|
Mode::List
|
||||||
|
@ -95,16 +94,15 @@ pub fn uu_app<'a>() -> Command<'a> {
|
||||||
.short('l')
|
.short('l')
|
||||||
.long(options::LIST)
|
.long(options::LIST)
|
||||||
.help("Lists signals")
|
.help("Lists signals")
|
||||||
.conflicts_with(options::TABLE)
|
.conflicts_with(options::TABLE),
|
||||||
.conflicts_with(options::TABLE_OLD),
|
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(options::TABLE)
|
Arg::new(options::TABLE)
|
||||||
.short('t')
|
.short('t')
|
||||||
|
.short_alias('L')
|
||||||
.long(options::TABLE)
|
.long(options::TABLE)
|
||||||
.help("Lists table of signals"),
|
.help("Lists table of signals"),
|
||||||
)
|
)
|
||||||
.arg(Arg::new(options::TABLE_OLD).short('L').hide(true))
|
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(options::SIGNAL)
|
Arg::new(options::SIGNAL)
|
||||||
.short('s')
|
.short('s')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue