mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37: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 REVERSE: &str = "reverse";
|
||||
pub static RECURSIVE: &str = "recursive";
|
||||
#[cfg(unix)]
|
||||
pub static COLOR: &str = "color";
|
||||
pub static PATHS: &str = "paths";
|
||||
}
|
||||
|
@ -451,13 +450,7 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
|
|||
.long(options::RECURSIVE)
|
||||
.help("List the contents of all directories recursively."),
|
||||
)
|
||||
|
||||
// Positional arguments
|
||||
.arg(Arg::with_name(options::PATHS).multiple(true).takes_value(true));
|
||||
|
||||
#[cfg(unix)]
|
||||
let app = {
|
||||
app.arg(
|
||||
.arg(
|
||||
Arg::with_name(options::COLOR)
|
||||
.long(options::COLOR)
|
||||
.help("Color output based on file type.")
|
||||
|
@ -465,7 +458,9 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
|
|||
.require_equals(true)
|
||||
.min_values(0),
|
||||
)
|
||||
};
|
||||
|
||||
// Positional arguments
|
||||
.arg(Arg::with_name(options::PATHS).multiple(true).takes_value(true));
|
||||
|
||||
let matches = app.get_matches_from(args);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue