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

touch: move help strings to markdown file

This commit is contained in:
Piotr Kwiecinski 2023-03-23 10:10:59 +01:00
parent 57541db124
commit 4597a5dac0
2 changed files with 10 additions and 3 deletions

View file

@ -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
View file

@ -0,0 +1,7 @@
# touch
```
touch [OPTION]... [USER]
```
Update the access and modification times of each `FILE` to the current time.