mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +00:00
Merge pull request #4468 from papparapa/chroot-move-help-strings-to-md-file
chroot: move help strings to markdown file
This commit is contained in:
commit
00e0531f92
2 changed files with 11 additions and 3 deletions
8
src/uu/chroot/chroot.md
Normal file
8
src/uu/chroot/chroot.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<!-- spell-checker:ignore NEWROOT -->
|
||||||
|
# chroot
|
||||||
|
|
||||||
|
```
|
||||||
|
chroot [OPTION]... NEWROOT [COMMAND [ARG]...]
|
||||||
|
```
|
||||||
|
|
||||||
|
Run COMMAND with root directory set to NEWROOT.
|
|
@ -19,10 +19,10 @@ use std::process;
|
||||||
use uucore::error::{set_exit_code, UClapError, UResult, UUsageError};
|
use uucore::error::{set_exit_code, UClapError, UResult, UUsageError};
|
||||||
use uucore::fs::{canonicalize, MissingHandling, ResolveMode};
|
use uucore::fs::{canonicalize, MissingHandling, ResolveMode};
|
||||||
use uucore::libc::{self, chroot, setgid, setgroups, setuid};
|
use uucore::libc::{self, chroot, setgid, setgroups, setuid};
|
||||||
use uucore::{entries, format_usage};
|
use uucore::{entries, format_usage, help_about, help_usage};
|
||||||
|
|
||||||
static ABOUT: &str = "Run COMMAND with root directory set to NEWROOT.";
|
static ABOUT: &str = help_about!("chroot.md");
|
||||||
static USAGE: &str = "{} [OPTION]... NEWROOT [COMMAND [ARG]...]";
|
static USAGE: &str = help_usage!("chroot.md");
|
||||||
|
|
||||||
mod options {
|
mod options {
|
||||||
pub const NEWROOT: &str = "newroot";
|
pub const NEWROOT: &str = "newroot";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue