From e77967e78c340a7bdcd3535afa05ca2c582a7183 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Tue, 20 Jan 2026 09:10:12 +0100 Subject: [PATCH] Update examples in POD. Signed-off-by: Thomas Hochstein --- ChangeLog | 1 + bin/yapfaq.pl | 51 +++++++++++++++++++++++++++++---------------------- 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/ChangeLog b/ChangeLog index daa9831..b66b4b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ yapfaq 1.0.0 (unreleased) * Fix file handling (UTF8 mode). * Show next posting date if posting is not due. * Add --simulation mode. +* Update examples in POD. yapfaq 0.10 (unreleased) * Add: Charset definition. diff --git a/bin/yapfaq.pl b/bin/yapfaq.pl index 060fc14..61f4c3a 100755 --- a/bin/yapfaq.pl +++ b/bin/yapfaq.pl @@ -883,34 +883,41 @@ Post all FAQs that are due for posting: yapfaq.pl -You may run this command daily from B. +You may run this command daily from B. If you add "-v", you'll +get a report mailed which FAQs have been posted and which were not +due. -Do a dry run, showing which FAQs would be posted and print them on -STDOUT: - - yapfaq.pl -t -v -o - (or yapfaq.pl -tvo) - -The same, with debugging output: - - yapfaq.pl -tdo - -Force a test post of your I text to I, even if -the text is not due to be posted: - - yapfaq.pl -t -f -n alt.test - -The same, with debugging output: - - yapfaq.pl -tfdn alt.test - - -Pipe all FAQs (that are due for posting) to I from INN: +Pipe all FAQs that are due for posting to I from INN instead: yapfaq.pl -o | inews You may run this command daily from B, too. +Show which FAQs are due for posting and the next due dates for those +that are not: + + yapfaq.pl -s + +Do a test run of your I text and and print it on STDOUT +(whether ist is due or not): + + yapfaq.pl -t -f -o -p example + (or yapfaq.pl -tfop example) + +The same, with debugging output (add "-d"): + + yapfaq.pl -tfdop example + +Force a test post of your I text to I, even if +the text is not due to be posted (same as before, just replace "-o" +by "-n alt-test"): + + yapfaq.pl -t -f -p example -n alt.test + +The same, with debugging output (add "-d"): + + yapfaq.pl -tfdp example -n alt.test + =head1 ENVIRONMENT =over 2