1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

Merge pull request #4469 from papparapa/install-move-help-strings-to-md-file

install: move help strings to markdown file
This commit is contained in:
Daniel Hofstetter 2023-03-07 09:12:03 +01:00 committed by GitHub
commit 199978694a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View file

@ -0,0 +1,8 @@
# install
```
install [OPTION]... [FILE]...
```
Copy SOURCE to DEST or multiple SOURCE(s) to the existing
DIRECTORY, while setting permission modes and owner/group

View file

@ -19,7 +19,7 @@ use uucore::error::{FromIo, UError, UIoError, UResult, UUsageError};
use uucore::fs::dir_strip_dot_for_creation;
use uucore::mode::get_umask;
use uucore::perms::{wrap_chown, Verbosity, VerbosityLevel};
use uucore::{format_usage, show, show_error, show_if_err, uio_error};
use uucore::{format_usage, help_about, help_usage, show, show_error, show_if_err, uio_error};
use libc::{getegid, geteuid};
use std::error::Error;
@ -144,9 +144,8 @@ impl Behavior {
}
}
static ABOUT: &str = "Copy SOURCE to DEST or multiple SOURCE(s) to the existing
DIRECTORY, while setting permission modes and owner/group";
const USAGE: &str = "{} [OPTION]... [FILE]...";
const ABOUT: &str = help_about!("install.md");
const USAGE: &str = help_usage!("install.md");
static OPT_COMPARE: &str = "compare";
static OPT_DIRECTORY: &str = "directory";