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:
parent
dec741ea50
commit
eaf66412d9
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue