1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-11-22 08:25:38 +00:00

Merge pull request #27 from vbatts/list-keyword_flag

main: change `-l` to `-list-keywords`
This commit is contained in:
Vincent Batts 2016-07-21 02:07:43 +09:00 committed by GitHub
commit 52a31746bf
2 changed files with 27 additions and 2 deletions

View file

@ -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
```

View file

@ -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() {