mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
basename: update format according to #4385
This commit is contained in:
parent
ff6f61276e
commit
f70d23b018
2 changed files with 2 additions and 5 deletions
|
@ -1,12 +1,9 @@
|
||||||
# basename
|
# basename
|
||||||
|
|
||||||
## Usage
|
|
||||||
```
|
```
|
||||||
basename NAME [SUFFIX]
|
basename NAME [SUFFIX]
|
||||||
basename OPTION... NAME...
|
basename OPTION... NAME...
|
||||||
```
|
```
|
||||||
|
|
||||||
## About
|
|
||||||
|
|
||||||
Print NAME with any leading directory components removed
|
Print NAME with any leading directory components removed
|
||||||
If specified, also remove a trailing SUFFIX
|
If specified, also remove a trailing SUFFIX
|
||||||
|
|
|
@ -11,9 +11,9 @@ use clap::{crate_version, Arg, ArgAction, Command};
|
||||||
use std::path::{is_separator, PathBuf};
|
use std::path::{is_separator, PathBuf};
|
||||||
use uucore::display::Quotable;
|
use uucore::display::Quotable;
|
||||||
use uucore::error::{UResult, UUsageError};
|
use uucore::error::{UResult, UUsageError};
|
||||||
use uucore::{format_usage, help_usage, help_section};
|
use uucore::{format_usage, help_usage, help_about};
|
||||||
|
|
||||||
static ABOUT: &str = help_section!("about","basename.md");
|
static ABOUT: &str = help_about!("basename.md");
|
||||||
|
|
||||||
const USAGE: &str = help_usage!("basename.md");
|
const USAGE: &str = help_usage!("basename.md");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue