diff --git a/bin/yapfaq.pl b/bin/yapfaq.pl index 61f4c3a..29a98bc 100755 --- a/bin/yapfaq.pl +++ b/bin/yapfaq.pl @@ -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"; @@ -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