[CalendarServer-changes] [7482] CalendarServer/branches/users/glyph/new-export/calendarserver/tools/ export.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon May 16 07:48:21 PDT 2011
Revision: 7482
http://trac.macosforge.org/projects/calendarserver/changeset/7482
Author: glyph at apple.com
Date: 2011-05-16 07:48:21 -0700 (Mon, 16 May 2011)
Log Message:
-----------
print extended help as before.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/new-export/calendarserver/tools/export.py
Modified: CalendarServer/branches/users/glyph/new-export/calendarserver/tools/export.py
===================================================================
--- CalendarServer/branches/users/glyph/new-export/calendarserver/tools/export.py 2011-05-16 14:47:57 UTC (rev 7481)
+++ CalendarServer/branches/users/glyph/new-export/calendarserver/tools/export.py 2011-05-16 14:48:21 UTC (rev 7482)
@@ -34,12 +34,14 @@
data associated with users and calendars beyond the iCalendar as visible to the
owner of that calendar, including DAV properties, information about sharing, and
per-user data such as alarms.
+
"""
+import os
import sys
import itertools
-
+from twisted.python.text import wordWrap
from twisted.python.usage import Options
from twisted.python import log
from twisted.internet.defer import inlineCallbacks, returnValue
@@ -66,6 +68,14 @@
sys.exit(0)
+description = '\n'.join(
+ wordWrap(
+ """
+ Usage: calendarserver_export [options] [input specifiers]\n
+ """ + __doc__,
+ int(os.environ.get('COLUMNS', '80'))
+ )
+)
class ExportOptions(Options):
"""
@@ -76,6 +86,8 @@
parsing --record and --collection options.
"""
+ synopsis = description
+
optParameters = [['config', 'f', DEFAULT_CARDDAV_CONFIG_FILE,
"Specify caldavd.plist configuration path."]]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110516/8b50f8fe/attachment.html>
More information about the calendarserver-changes
mailing list