From 247cd84075cf43d4a5e9e2d6209709d360b514e3 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Wed, 20 Jul 2016 11:39:32 -0400 Subject: [PATCH] main: change `-l` to `-list-keywords` The FreeBSD flag `-l` is already used and has differing behavior, so switch to not conflict Reported-by: Aleksa Sarai Signed-off-by: Vincent Batts --- README.md | 27 ++++++++++++++++++++++++++- cmd/gomtree/main.go | 2 +- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a701cbb..d252b4e 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,32 @@ gomtree -p . -f /tmp/mtree.txt ### See the supported keywords ```bash -gomtree -l +gomtree -list-keywords +Available keywords: + rmd160 + ripemd160digest + type (default) + link (default) + cksum + md5 + md5digest + sha256digest + sha512 + time (default) + gid (default) + mode (default) + sha1 + sha1digest + size (default) + uid (default) + sha256 + sha384 + sha512digest + nlink (default) + uname + rmd160digest + sha384digest + xattr ``` diff --git a/cmd/gomtree/main.go b/cmd/gomtree/main.go index a70b303..ac9f02b 100644 --- a/cmd/gomtree/main.go +++ b/cmd/gomtree/main.go @@ -16,7 +16,7 @@ var ( flPath = flag.String("p", "", "root path that the hierarchy spec is relative to") flAddKeywords = flag.String("K", "", "Add the specified (delimited by comma or space) keywords to the current set of keywords") flUseKeywords = flag.String("k", "", "Use the specified (delimited by comma or space) keywords as the current set of keywords") - flListKeywords = flag.Bool("l", false, "List the keywords available") + flListKeywords = flag.Bool("list-keywords", false, "List the keywords available") ) func main() {