From 6a68ac8c27ba6d67f1429cc65fded3fa61564900 Mon Sep 17 00:00:00 2001 From: Alexandru Macovei Date: Sat, 7 Jul 2018 15:44:26 +0300 Subject: [PATCH] [ownership] add help text for --owner --- src/app.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index ab7798f..6faa2dd 100644 --- a/src/app.rs +++ b/src/app.rs @@ -529,7 +529,18 @@ pub fn build_app() -> App<'static, 'static> { Arg::with_name("owner") .long("owner") .short("o") - .takes_value(true), + .takes_value(true) + .value_name("user:group") + .help("Filter by owning user and/or group") + .long_help( + "Filter files by their user and/or group. \ + Format: [(user|uid)][:(group|gid)]. Either side is optional. \ + Precede either side with a '!' to exclude files instead.\n\ + Examples:\n \ + --owner john\n \ + --owner :students\n \ + --owner '!john:students'", + ), ); }