Skip to content

Commit

Permalink
gdal_argparse.py: use the default ArgumentParser formatter_class if N…
Browse files Browse the repository at this point in the history
…one is provided
  • Loading branch information
rouault committed Mar 12, 2024
1 parent 584aa9d commit a8846d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions swig/python/gdal-utils/osgeo_utils/auxiliary/gdal_argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ def __init__(
formatter_class = argparse.RawDescriptionHelpFormatter
description = f'{title}\n{"-"*(2+len(title))}\n{description}'

if formatter_class is None:
formatter_class = argparse.HelpFormatter

super().__init__(
fromfile_prefix_chars=fromfile_prefix_chars,
description=description,
Expand Down

0 comments on commit a8846d1

Please sign in to comment.