Skip to content

Commit

Permalink
ogr2ogr: add [--long-usage] in synopsis (fixes #8853)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 28, 2023
1 parent 5fef7b6 commit 36255c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/ogr2ogr_bin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static void Usage(bool bIsError, const char *pszAdditionalMsg = nullptr,
{
fprintf(
bIsError ? stderr : stdout,
"Usage: ogr2ogr [--help] [--help-general]\n"
"Usage: ogr2ogr [--help] [--help-general] [--long-usage]\n"
" [-skipfailures] [-append | -upsert] [-update]\n"
" [-select <field_list>] [-where "
"<restricted_where>|@<filename>]\n"
Expand Down
4 changes: 3 additions & 1 deletion doc/source/programs/ogr2ogr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Synopsis

.. code-block::
ogr2ogr [--help] [--help-general]
ogr2ogr [--help] [--help-general] [--long-usage]
[-skipfailures] [-append | -upsert] [-update]
[-select <field_list>] [-where <restricted_where>|@<filename>]
[-progress] [-sql <sql statement>|@<filename>] [-dialect <dialect>]
Expand Down Expand Up @@ -65,6 +65,8 @@ output coordinate system or even reprojecting the features during translation.

.. program:: ogr2ogr

.. include:: options/help_and_help_general.rst

.. option:: -f <format_name>

Output file format name, e.g. ``ESRI Shapefile``, ``MapInfo File``,
Expand Down

0 comments on commit 36255c6

Please sign in to comment.