diff --git a/scripts/extract_odm_strings.py b/scripts/extract_odm_strings.py index afe2ee8c3..2d0e5232c 100644 --- a/scripts/extract_odm_strings.py +++ b/scripts/extract_odm_strings.py @@ -75,7 +75,7 @@ for opt in options: h = options[opt].get('help') if h: h = h.replace("\n", "") - h = h.replace('%(default)s', '``' + options[opt].get('default', '') + '``') + h = h.replace('%(default)s', ('``' + options[opt].get('default', '') + '``').replace('````', '``')) h = h.replace('%(choices)s', options[opt].get('choices', '')) options[opt]['help'] = h else: diff --git a/source/arguments.rst b/source/arguments.rst index 7df4219b0..8f8b5830b 100644 --- a/source/arguments.rst +++ b/source/arguments.rst @@ -13,7 +13,7 @@ Arguments Set a camera projection type. Manually setting a value can help improve geometric undistortion. By default the application tries to determine a lens type from the images metadata. Can be set to one of: ['auto', 'perspective', 'brown', 'fisheye', 'spherical']. Default: ``auto`` ``--cameras`` - Use the camera parameters computed from another dataset instead of calculating them. Can be specified either as path to a cameras.json file or as a JSON string representing the contents of a cameras.json file. Default: ```` + Use the camera parameters computed from another dataset instead of calculating them. Can be specified either as path to a cameras.json file or as a JSON string representing the contents of a cameras.json file. Default: `"` ``--crop`` Automatically crop image outputs by creating a smooth buffer around the dataset boundaries, shrinked by N meters. Use 0 to disable cropping. Default: ``3``