diff --git a/readme.md b/readme.md index 8eb91d3..8b9923a 100644 --- a/readme.md +++ b/readme.md @@ -34,8 +34,8 @@ Flags: Commands: ls list files matching the criteria - rotate rotate matching files, compress them and truncate everything older - than max age + rotate rotate matching files, compress and truncate after successful + compression remove remove matching files older than max age Run "fileaxe --help" for more information on a command. diff --git a/src/argparse.go b/src/argparse.go index 4ac1f2f..2d028e2 100644 --- a/src/argparse.go +++ b/src/argparse.go @@ -37,7 +37,7 @@ var CLI struct { Rotate struct { Format string `help:"compression format, if files are not removed" short:"g" default:"gz" enum:"snappy,gz,xz"` SkipTruncate bool `help:"skip file truncation, don't empty compressed log files" short:"k"` - } `cmd:"" help:"rotate matching files, compress them and truncate everything older than max age"` + } `cmd:"" help:"rotate matching files, compress and truncate after successful compression"` Remove struct { Yes bool `help:"assume yes on remove affirmation query"`