rename --when to --interval

More accurately describes its behavior.
This commit is contained in:
Joey Hess 2023-11-14 11:45:16 -04:00
parent 1ddec09f7c
commit 21e66ce209
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 5 additions and 5 deletions

View file

@ -80,8 +80,8 @@ optParser desc = LogOptions
<> help "display history of total sizes of all repositories" <> help "display history of total sizes of all repositories"
) )
<*> optional (option (eitherReader parseDuration) <*> optional (option (eitherReader parseDuration)
( long "when" <> metavar paramTime ( long "interval" <> metavar paramTime
<> help "when to display changed size" <> help "minimum time between displays of changed size"
)) ))
<*> switch <*> switch
( long "raw-date" ( long "raw-date"

View file

@ -61,11 +61,11 @@ false, information may not have been committed to the branch yet.
This is like `--sizesof`, but it displays the total size of all This is like `--sizesof`, but it displays the total size of all
known repositories. known repositories.
* `--when=time` * `--interval=time`
When using `--sizesof`, `--sizes`, and `--totalsizes`, this When using `--sizesof`, `--sizes`, and `--totalsizes`, this
controls how often to display the size. The default is to controls the minimum interval between displays of the size.
display each change to the size. The default is to display each recorded change to the size.
The time is of the form "30d" or "1y". The time is of the form "30d" or "1y".