From a480ab069402ff3b1570eb44570a42e361276c75 Mon Sep 17 00:00:00 2001 From: Koki Ueha Date: Mon, 13 Mar 2023 15:04:46 +0000 Subject: [PATCH] mkfifo: move help strings to markdown file --- src/uu/mkfifo/mkfifo.md | 7 +++++++ src/uu/mkfifo/src/mkfifo.rs | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 src/uu/mkfifo/mkfifo.md diff --git a/src/uu/mkfifo/mkfifo.md b/src/uu/mkfifo/mkfifo.md new file mode 100644 index 000000000..b63437829 --- /dev/null +++ b/src/uu/mkfifo/mkfifo.md @@ -0,0 +1,7 @@ +# mkfifo + +``` +mkfifo [OPTION]... NAME... +``` + +Create a FIFO with the given name. diff --git a/src/uu/mkfifo/src/mkfifo.rs b/src/uu/mkfifo/src/mkfifo.rs index 99c16acff..dc338cf12 100644 --- a/src/uu/mkfifo/src/mkfifo.rs +++ b/src/uu/mkfifo/src/mkfifo.rs @@ -10,10 +10,10 @@ use libc::mkfifo; use std::ffi::CString; use uucore::display::Quotable; use uucore::error::{UResult, USimpleError}; -use uucore::{format_usage, show}; +use uucore::{format_usage, help_about, help_usage, show}; -static USAGE: &str = "{} [OPTION]... NAME..."; -static ABOUT: &str = "Create a FIFO with the given name."; +static USAGE: &str = help_usage!("mkfifo.md"); +static ABOUT: &str = help_about!("mkfifo.md"); mod options { pub static MODE: &str = "mode";