diff --git a/src/uu/sync/src/sync.rs b/src/uu/sync/src/sync.rs index 120e31dfe..e12703bca 100644 --- a/src/uu/sync/src/sync.rs +++ b/src/uu/sync/src/sync.rs @@ -19,10 +19,11 @@ use uucore::display::Quotable; #[cfg(any(target_os = "linux", target_os = "android"))] use uucore::error::FromIo; use uucore::error::{UResult, USimpleError}; -use uucore::format_usage; +use uucore::{format_usage, help_about, help_usage}; + +const ABOUT: &str = help_about!("sync.md"); +const USAGE: &str = help_usage!("sync.md"); -static ABOUT: &str = "Synchronize cached writes to persistent storage"; -const USAGE: &str = "{} [OPTION]... FILE..."; pub mod options { pub static FILE_SYSTEM: &str = "file-system"; pub static DATA: &str = "data"; diff --git a/src/uu/sync/sync.md b/src/uu/sync/sync.md new file mode 100644 index 000000000..2fdd36339 --- /dev/null +++ b/src/uu/sync/sync.md @@ -0,0 +1,7 @@ +# sync + +``` +sync [OPTION]... FILE... +``` + +Synchronize cached writes to persistent storage