From ef18e44ef04b6f0e755ba76620697df1ff32096f Mon Sep 17 00:00:00 2001 From: Christian Zangl Date: Wed, 21 Aug 2024 21:18:29 +0200 Subject: [PATCH] update flags (breaks -s -> -S, -f removed) --- README.md | 6 +++--- cmd/chkbit/main.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 311af17..95e84ea 100644 --- a/README.md +++ b/README.md @@ -85,11 +85,11 @@ Flags: -h, --help Show context-sensitive help. -H, --tips Show tips. -u, --update update indices (without this chkbit will verify files in readonly mode) - --show-ignored-only only show ignored files + -i, --show-ignored-only only show ignored files (will not check hashes in this mode) -m, --show-missing show missing files/directories --algo="blake3" hash algorithm: md5, sha512, blake3 (default: blake3) - -f, --force force update of damaged items - -s, --skip-symlinks do not follow symlinks + --force force update of damaged items + -S, --skip-symlinks do not follow symlinks -R, --no-recurse do not recurse into subdirectories -D, --no-dir-in-index do not track directories in the index -l, --log-file=STRING write to a logfile if specified diff --git a/cmd/chkbit/main.go b/cmd/chkbit/main.go index ad8d09c..2383bb6 100644 --- a/cmd/chkbit/main.go +++ b/cmd/chkbit/main.go @@ -45,11 +45,11 @@ var cli struct { Paths []string `arg:"" optional:"" name:"paths" help:"directories to check"` Tips bool `short:"H" help:"Show tips."` Update bool `short:"u" help:"update indices (without this chkbit will verify files in readonly mode)"` - ShowIgnoredOnly bool `help:"only show ignored files"` + ShowIgnoredOnly bool `short:"i" help:"only show ignored files (will not check hashes in this mode)"` ShowMissing bool `short:"m" help:"show missing files/directories"` Algo string `default:"blake3" help:"hash algorithm: md5, sha512, blake3 (default: blake3)"` - Force bool `short:"f" help:"force update of damaged items"` - SkipSymlinks bool `short:"s" help:"do not follow symlinks"` + Force bool `help:"force update of damaged items"` + SkipSymlinks bool `short:"S" help:"do not follow symlinks"` NoRecurse bool `short:"R" help:"do not recurse into subdirectories"` NoDirInIndex bool `short:"D" help:"do not track directories in the index"` LogFile string `short:"l" help:"write to a logfile if specified"`