Skip to content

Commit b4e933e

Browse files
committed
main_entry: reformat parser.add_argument calls
1 parent 9441f82 commit b4e933e

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

src/instamatic/calibrate/calibrate_movie_delays.py

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -344,26 +344,45 @@ def main_entry() -> None:
344344
description=description, formatter_class=argparse.RawDescriptionHelpFormatter
345345
)
346346

347-
h = 'Exposure to test the delay for in seconds. Default: 1'
348-
parser.add_argument('-e', '--exposure', type=float, default=1.0, help=h)
347+
parser.add_argument(
348+
'-e',
349+
'--exposure',
350+
type=float,
351+
default=1.0,
352+
help='Exposure to test the delay for in seconds. Default: 1',
353+
)
349354

350355
parser.add_argument(
351-
'-a', '--variable_headers',
352-
type=str,
356+
'-a',
357+
'--variable_headers',
358+
type=str,
353359
default=None,
354360
help=(
355361
'Comma-delimited list of variable header keys to calibrate for. '
356362
'For default, see `src/instamatic/controller.py:MOVIE_HEADER_KEYS_VARIABLE`.'
357-
)
363+
),
358364
)
359365

360-
h = 'Comma-delimited list of common header keys to calibrate for. '
361-
h += 'For default, see `src/instamatic/controller.py:MOVIE_HEADER_KEYS_COMMON`.'
362-
parser.add_argument('-c', '--common_headers', type=str, default=None, help=h)
366+
parser.add_argument(
367+
'-c',
368+
'--common_headers',
369+
type=str,
370+
default=None,
371+
help=(
372+
'Comma-delimited list of common header keys to calibrate for. '
373+
'For default, see `src/instamatic/controller.py:MOVIE_HEADER_KEYS_COMMON`.'
374+
),
375+
)
363376

364-
h = 'Path to the directory where calibration file should be output. '
365-
h += 'Default: "%%appdata%%/calib" (Windows) or "$AppData/calib" (Unix).'
366-
parser.add_argument('-o', '--outdir', type=str, help=h)
377+
parser.add_argument(
378+
'-o',
379+
'--outdir',
380+
type=str,
381+
help=(
382+
'Path to the directory where calibration file should be output. '
383+
'Default: "%%appdata%%/calib" (Windows) or "$AppData/calib" (Unix).'
384+
),
385+
)
367386

368387
options = parser.parse_args()
369388

0 commit comments

Comments
 (0)