Skip to content

Commit

Permalink
fix up due command example
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Jan 9, 2025
1 parent f0d7851 commit dab84ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assimilate/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ class DueCommand(Command):
root squeeze completed 4.6 days ago.
root check completed 12 days ago.
> assimilate due -b1 -m "It has been {since:.1pd} days since the last {action}."
> assimilate due -b1 -m "It has been {since:.1pdays} since the last {action}."
It has been 1.8 days since the last backup.
> assimilate due -s10 -m "It has been {elapsed} since the last {cmd} of {config}."
Expand Down Expand Up @@ -1297,7 +1297,8 @@ def gen_message(cmd):
cmd=cmd, action=action
)
try:
return cmdline["--message"].format(**replacements)
with Quantity.prefs(spacer=" "):
return cmdline["--message"].format(**replacements)
except KeyError as e:
raise Error(
f"‘{e.args[0]}’ is an unknown key.",
Expand Down

0 comments on commit dab84ba

Please sign in to comment.