Implement $DefaultTDelta system variable and -tt[N] command-line option.

This commit is contained in:
Dianne Skoll
2022-01-20 09:44:17 -05:00
parent 1675fdb499
commit d33c27289a
4 changed files with 16 additions and 2 deletions

View File

@@ -284,7 +284,19 @@ void InitRemind(int argc, char const *argv[])
case 't':
case 'T':
if (!*arg) {
if (*arg == 'T' || *arg == 't') {
arg++;
if (!*arg) {
DefaultTDelta = 5;
} else {
PARSENUM(DefaultTDelta, arg);
if (DefaultTDelta < 0) {
DefaultTDelta = 0;
} else if (DefaultTDelta > 1440) {
DefaultTDelta = 1440;
}
}
} else if (!*arg) {
InfiniteDelta = 1;
} else {
PARSENUM(DeltaOffset, arg);