mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
realpath: use consts for all options
This commit is contained in:
parent
b2968a9025
commit
95ef3643e3
1 changed files with 6 additions and 6 deletions
|
@ -21,17 +21,17 @@ use uucore::{
|
||||||
show_if_err,
|
show_if_err,
|
||||||
};
|
};
|
||||||
|
|
||||||
static OPT_QUIET: &str = "quiet";
|
const OPT_QUIET: &str = "quiet";
|
||||||
static OPT_STRIP: &str = "strip";
|
const OPT_STRIP: &str = "strip";
|
||||||
static OPT_ZERO: &str = "zero";
|
const OPT_ZERO: &str = "zero";
|
||||||
static OPT_PHYSICAL: &str = "physical";
|
const OPT_PHYSICAL: &str = "physical";
|
||||||
static OPT_LOGICAL: &str = "logical";
|
const OPT_LOGICAL: &str = "logical";
|
||||||
const OPT_CANONICALIZE_MISSING: &str = "canonicalize-missing";
|
const OPT_CANONICALIZE_MISSING: &str = "canonicalize-missing";
|
||||||
const OPT_CANONICALIZE_EXISTING: &str = "canonicalize-existing";
|
const OPT_CANONICALIZE_EXISTING: &str = "canonicalize-existing";
|
||||||
const OPT_RELATIVE_TO: &str = "relative-to";
|
const OPT_RELATIVE_TO: &str = "relative-to";
|
||||||
const OPT_RELATIVE_BASE: &str = "relative-base";
|
const OPT_RELATIVE_BASE: &str = "relative-base";
|
||||||
|
|
||||||
static ARG_FILES: &str = "files";
|
const ARG_FILES: &str = "files";
|
||||||
|
|
||||||
#[uucore::main]
|
#[uucore::main]
|
||||||
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue