From: Thomas Hochstein Date: Sun, 21 Feb 2010 18:01:46 +0000 (+0100) Subject: Add commandline options. X-Git-Tag: v0.6~2^2 X-Git-Url: https://code.th-h.de/?p=usenet%2Fyapfaq.git;a=commitdiff_plain;h=4251e5451cacbbd682ec65b4057e4dc5733aca06;hp=4251e5451cacbbd682ec65b4057e4dc5733aca06 Add commandline options. Using Getopt::Std. Implement option '-h': display version and usage information. Implement option '-v': Print progress information to STDOUT on reading the configuration, skipping a FAQ, preparing it for posting, posting it and writing status information to disk. Implement option '-f': limit operation to the given project name. Skip parsing all other information from yapfaq.cfg, skip posting all other FAQs. Add option '-d': 'dry run', simulation mode: nothing is posted. Add option '-p': 'post anyway', files are unconditionally posted irrespective of Posting-Frequency settings. Add option '-t ': 'test mode', post to (an)other newsgroup(s) given on the command line or to STDOUT ('console'). Signed-off-by: Thomas Hochstein ---