1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

basename: update format according to #4385

This commit is contained in:
curtain 2023-02-20 18:13:36 +08:00
parent ff6f61276e
commit f70d23b018
No known key found for this signature in database
GPG key ID: 8FCF6EB27D528E38
2 changed files with 2 additions and 5 deletions

View file

@ -1,12 +1,9 @@
# basename
## Usage
```
basename NAME [SUFFIX]
basename OPTION... NAME...
```
## About
Print NAME with any leading directory components removed
If specified, also remove a trailing SUFFIX

View file

@ -11,9 +11,9 @@ use clap::{crate_version, Arg, ArgAction, Command};
use std::path::{is_separator, PathBuf};
use uucore::display::Quotable;
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");