Compare commits

...

2 commits

Author SHA1 Message Date
d28ca61a32 Add --simulation to usage info.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2026-01-23 21:53:23 +01:00
9e63c45f0b Fix typo.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2026-01-23 21:53:23 +01:00

View file

@ -213,6 +213,7 @@ sub ShowUsage {
print " -t don't update project status (test)\n";
print " -n newsgroup post only to newsgroup (for testing)\n";
print " -o print to STDOUT (for testing or to pipe into inews)\n";
print " -s only show which projects are due, implies -tv\n";
print " --datadir path override \$datadir\n";
print " --nntp-server name override \$nntp-server\n";
print " --nntp-port port override \$nntp-port\n";
@ -364,7 +365,7 @@ sub AuthNNTP {
### ------------------------------------------------------------------
### build posting
# read and parser header and body from files
# read and parse header and body from files
# read status file, check due date
sub BuildPosting {
my $Project = shift;
@ -520,7 +521,7 @@ sub BuildPosting {
if ($OptForce or (!$LastPosted) or ($LastPosted && $NextPosted <= DateTime->now)) {
print "... is due and will be posted.\n" if $Config{'verbose'} or $Config{'debug'};
} else {
printf ("... is not due (next post at %s).\n", $NextPosted->strftime('%Y-%m-%d'))
printf("... is not due (next post at %s).\n", $NextPosted->strftime('%Y-%m-%d'))
if $Config{'verbose'} or $Config{'debug'};
return '';
}
@ -855,6 +856,8 @@ Display this man page and exit.
Simulation mode. Don't post, just show which projects would be due.
Implies B<--test> and B<--verbose>.
Can be combined with B<--project> to show if just one project is due.
=item B<-t>, B<--test>
Test mode. Don't update project status (time and Message-ID of last