Imply -o for --testing as long as -n is not set.
Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
parent
6b73bdfdd3
commit
ae4714e30d
2 changed files with 13 additions and 11 deletions
|
|
@ -112,6 +112,9 @@ if ($OptSimulation) {
|
|||
$Config{'verbose'} = 1;
|
||||
}
|
||||
|
||||
# -t implies -o if -n is not set
|
||||
$OptOutput = 1 if $OptTest && !$OptNewsgroup;
|
||||
|
||||
### create list of @Projects from $Config{'datadir'} unless -p is set
|
||||
my @Projects;
|
||||
if (!$OptProject) {
|
||||
|
|
@ -843,7 +846,7 @@ unique I<Message-ID:> (and no I<Supersedes:> header).
|
|||
|
||||
Don't post via NNTP, but print to STDOUT.
|
||||
|
||||
Combine with B<--test> to avoid updating project status.
|
||||
Use B<--test> instead to avoid updating project status.
|
||||
|
||||
Intended for testing purposes or to pipe in another program like
|
||||
I<inews> or I<tinews.pl>. If you want to pipe the output to another
|
||||
|
|
@ -861,7 +864,7 @@ Display this man page and exit.
|
|||
=item B<-s>, B<--simulation>
|
||||
|
||||
Simulation mode. Don't post, just show which projects would be due.
|
||||
Implies B<--test> and B<--verbose>.
|
||||
Implies B<--test> (without B<--output>) and B<--verbose>.
|
||||
|
||||
Can be combined with B<--project> to show if just one project is due.
|
||||
|
||||
|
|
@ -871,10 +874,8 @@ Test mode. Don't update project status (time and Message-ID of last
|
|||
posting); if project is posted to Usenet, dont' add a I<Supersedes:>
|
||||
header and modify the I<Message-ID:> with a random part.
|
||||
|
||||
The text(s) will still be posted if due or forced by B<--force>.
|
||||
|
||||
Combine with B<--output> to redirect output to STDOUT or with
|
||||
B<--newsgroup> to override the I<Newsgroups:> header.
|
||||
Implies B<--output> (to redirect output to STDOUT) as long as
|
||||
B<--newsgroup> (to override the I<Newsgroups:> header) is not set.
|
||||
|
||||
=item B<-V>, B<--version>
|
||||
|
||||
|
|
@ -911,16 +912,16 @@ that are not:
|
|||
Do a test run of your I<example> 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)
|
||||
yapfaq.pl -t -f -p example
|
||||
(or yapfaq.pl -tfp example)
|
||||
|
||||
The same, with debugging output (add "-d"):
|
||||
|
||||
yapfaq.pl -tfdop example
|
||||
yapfaq.pl -tfdp example
|
||||
|
||||
Force a test post of your I<example> text to I<alt.test>, even if
|
||||
the text is not due to be posted (same as before, just replace "-o"
|
||||
by "-n alt-test"):
|
||||
the text is not due to be posted (same as before, just add
|
||||
"-n alt-test"):
|
||||
|
||||
yapfaq.pl -t -f -p example -n alt.test
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue