PIM: fix sync.py --sync-flags

The help text used single quotes for the JSON example instead of
the required double quotes. Running without --sync-flags was broken
because of trying to parse the empty string as JSON.
This commit is contained in:
Patrick Ohly 2014-08-26 16:44:15 +02:00
parent dec741ea50
commit eaf66412d9
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ parser.add_option("-m", "--mode",
action="store", default='',
help="Override default PBAP sync mode. One of 'all', 'text', 'incremental' (default).")
parser.add_option("", "--sync-flags",
action="store", default='',
help="Additionall SyncPeerWithFlags() flags in JSON notation. For example: { 'pbap-chunk-transfer-time': 20, 'pbap-chunk-time-lambda': 0.5, 'pbap-chunk-max-count-photo': 100 }")
action="store", default='{}',
help="""Additionall SyncPeerWithFlags() flags in JSON notation. For example: '--sync-flags={ "pbap-chunk-transfer-time": 20, "pbap-chunk-time-lambda": 0.5, "pbap-chunk-max-count-photo": 100 }'""")
parser.add_option("-f", "--progress-frequency",
action="store", type="float", default=0.0,
help="Override default progress event frequency.")