mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
ls: --color back on windows as noop
This commit is contained in:
parent
f28d5f4a73
commit
20094127c3
1 changed files with 4 additions and 9 deletions
|
@ -102,7 +102,6 @@ pub mod options {
|
||||||
pub static NUMERIC_UID_GID: &str = "numeric-uid-gid";
|
pub static NUMERIC_UID_GID: &str = "numeric-uid-gid";
|
||||||
pub static REVERSE: &str = "reverse";
|
pub static REVERSE: &str = "reverse";
|
||||||
pub static RECURSIVE: &str = "recursive";
|
pub static RECURSIVE: &str = "recursive";
|
||||||
#[cfg(unix)]
|
|
||||||
pub static COLOR: &str = "color";
|
pub static COLOR: &str = "color";
|
||||||
pub static PATHS: &str = "paths";
|
pub static PATHS: &str = "paths";
|
||||||
}
|
}
|
||||||
|
@ -451,13 +450,7 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
|
||||||
.long(options::RECURSIVE)
|
.long(options::RECURSIVE)
|
||||||
.help("List the contents of all directories recursively."),
|
.help("List the contents of all directories recursively."),
|
||||||
)
|
)
|
||||||
|
.arg(
|
||||||
// Positional arguments
|
|
||||||
.arg(Arg::with_name(options::PATHS).multiple(true).takes_value(true));
|
|
||||||
|
|
||||||
#[cfg(unix)]
|
|
||||||
let app = {
|
|
||||||
app.arg(
|
|
||||||
Arg::with_name(options::COLOR)
|
Arg::with_name(options::COLOR)
|
||||||
.long(options::COLOR)
|
.long(options::COLOR)
|
||||||
.help("Color output based on file type.")
|
.help("Color output based on file type.")
|
||||||
|
@ -465,7 +458,9 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
|
||||||
.require_equals(true)
|
.require_equals(true)
|
||||||
.min_values(0),
|
.min_values(0),
|
||||||
)
|
)
|
||||||
};
|
|
||||||
|
// Positional arguments
|
||||||
|
.arg(Arg::with_name(options::PATHS).multiple(true).takes_value(true));
|
||||||
|
|
||||||
let matches = app.get_matches_from(args);
|
let matches = app.get_matches_from(args);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue