document in readme about t-archive's --time

This commit is contained in:
Abraham Toriz 2022-08-03 21:54:25 +08:00
parent 152d67b664
commit 5807ed23cd
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
2 changed files with 4 additions and 3 deletions

View File

@ -145,9 +145,10 @@ You can archive entries from a timesheet using:
which defaults to archiving all entries in the current sheet, or you can be more
specific using these options:
-s, --start <date:qs> Include entries that start on this date or later
-e, --end <date:qs> Include entries that start on this date or earlier
-s, --start <date:qs> Include entries that start on this date or later.
-e, --end <date:qs> Include entries that start on this date or earlier.
-g, --grep <regexp> Include entries where the note matches this regexp.
-t, --time <hours> Only archive up to `hours` hours.
This subcommand will move the selected entries to a hidden timesheet named
`_[SHEET]` (the name of the timesheet preceded by an underscore).

View File

@ -154,7 +154,7 @@ fn main() {
)
.arg(Arg::with_name("time")
.short("t").long("time")
.takes_value(true)
.takes_value(true).value_name("HOURS")
.help("Time in hours to archive. Archived time will be equal or less than this.")
)
)