mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 12:37:49 +00:00
Merge pull request #4581 from piotrkwiecinski/touch-move-string-to-md-file
touch: move help strings to markdown file
This commit is contained in:
commit
6970da3b2b
2 changed files with 10 additions and 3 deletions
|
@ -19,10 +19,10 @@ use time::macros::{format_description, offset, time};
|
|||
use time::Duration;
|
||||
use uucore::display::Quotable;
|
||||
use uucore::error::{FromIo, UError, UResult, USimpleError};
|
||||
use uucore::{format_usage, show};
|
||||
use uucore::{format_usage, help_about, help_usage, show};
|
||||
|
||||
static ABOUT: &str = "Update the access and modification times of each FILE to the current time.";
|
||||
const USAGE: &str = "{} [OPTION]... [USER]";
|
||||
const ABOUT: &str = help_about!("touch.md");
|
||||
const USAGE: &str = help_usage!("touch.md");
|
||||
pub mod options {
|
||||
// Both SOURCES and sources are needed as we need to be able to refer to the ArgGroup.
|
||||
pub static SOURCES: &str = "sources";
|
||||
|
|
7
src/uu/touch/touch.md
Normal file
7
src/uu/touch/touch.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# touch
|
||||
|
||||
```
|
||||
touch [OPTION]... [USER]
|
||||
```
|
||||
|
||||
Update the access and modification times of each `FILE` to the current time.
|
Loading…
Add table
Add a link
Reference in a new issue