[mhonarc] add help to command line arguments
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mhonarc] add help to command line arguments
- Date: Fri, 15 Feb 2013 13:53:17 +0000 (UTC)
commit 870774bc67406a29a00e2204310f57b577a9ba8e
Author: Olav Vitters <olav vitters nl>
Date: Fri Feb 15 14:53:15 2013 +0100
add help to command line arguments
archive.py | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/archive.py b/archive.py
index be2497a..5eb1fc8 100755
--- a/archive.py
+++ b/archive.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -3
+#!/usr/bin/python
import os
import os.path
@@ -561,16 +561,16 @@ def main():
description = """Archive an email or an mbox per month using mhonarc"""
epilog="""Report bugs to https://bugzilla.gnome.org/enter_bug.cgi?product=sysadmin"""
parser = argparse.ArgumentParser(description=description,epilog=epilog)
- parser.add_argument('--debug', action='store_true')
- parser.add_argument('--private', action='store_true')
- parser.add_argument('--start-time', type=mkdate)
- parser.add_argument('--end-time', type=mkdate)
- parser.add_argument('--listname', required=True)
+ parser.add_argument('--debug', action='store_true', help='Show debugging messages')
+ parser.add_argument('--private', action='store_true', help='Private mailing list')
+ parser.add_argument('--start-time', type=mkdate, help='Only archive messages received on or after
START_TIME')
+ parser.add_argument('--end-time', type=mkdate, help='Only archive messages received before or on
END_TIME')
+ parser.add_argument('--listname', required=True, help='Name of the mailing list')
group = parser.add_mutually_exclusive_group()
- group.add_argument('--makeindex', action='store_true')
- group.add_argument('infile', nargs='?', type=argparse.FileType('r'),
- default=sys.stdin)
+ group.add_argument('--makeindex', action='store_true', help='Recreate the index page to the indivual
months')
+ group.add_argument('infile', nargs='?', type=argparse.FileType('r'), metavar='FILE',
+ default=sys.stdin, help='email or mbox to archive')
options = parser.parse_args()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]