From e8fcc5d631aa69854950fdb2da9981d528806e49 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 21 Oct 2005 13:58:29 +0000 Subject: fetchmailconf -h documents the fetchmailconf -h option. fetchmailconf -V now prints the fetchmailconf version. svn path=/trunk/; revision=4365 --- fetchmailconf.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'fetchmailconf.py') diff --git a/fetchmailconf.py b/fetchmailconf.py index 571e18fb..5844d01c 100755 --- a/fetchmailconf.py +++ b/fetchmailconf.py @@ -5,7 +5,7 @@ # Matthias Andree # Requires Python with Tkinter, and the following OS-dependent services: # posix, posixpath, socket -version = "1.49" +version = "1.50" from Tkinter import * from Dialog import * @@ -2038,7 +2038,7 @@ gUSiYASJpMEHhilJTEnhAlGoQqYAZQ1AiqEMZ0jDGtqQImhwwA13yMMevoQAGvGhEAWHGMOAAAA7 # # Process options - (options, arguments) = getopt.getopt(sys.argv[1:], "df:h") + (options, arguments) = getopt.getopt(sys.argv[1:], "df:hV") dump = rcfile = None; for (switch, val) in options: if (switch == '-d'): @@ -2047,11 +2047,16 @@ gUSiYASJpMEHhilJTEnhAlGoQqYAZQ1AiqEMZ0jDGtqQImhwwA13yMMevoQAGvGhEAWHGMOAAAA7 rcfile = val elif (switch == '-h'): print """ -Usage: fetchmailconf [-d] [-f fetchmailrc] +Usage: fetchmailconf {[-d] [-f fetchmailrc]|-h|-V} -d - dump configuration (for debugging) -f fmrc - read alternate fetchmailrc file +-h - print this help text and quit +-V - print fetchmailconf version and quit """ sys.exit(0) + elif (switch == '-V'): + print "fetchmailconf %s" % version + sys.exit(0) # Get client host's FQDN hostname = socket.gethostbyaddr(socket.gethostname())[0] -- cgit v1.2.3