[GRASS-dev] [GRASS GIS] #4001: grass78 --config broken

#4001: grass78 --config broken
-------------------------+---------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.8.2
Component: Python | Version: git-releasebranch78
Keywords: grass.py | CPU: Unspecified
Platform: Unspecified |
-------------------------+---------------------------------
Should should be caught more gracefully:

{{{
grass78 --config
x86_64-pc-linux-gnu
./configure --with-cxx --enable-largefile --with-proj --with-proj-
share=/usr/share/proj --with-gdal=/usr/bin/gdal-config --with-python
--with-geos --with-sqlite --with-nls --with-zstd --with-pdal --with-cairo
--with-cairo-ldflags=-lfontconfig --with-freetype --with-freetype-
includes=/usr/include/freetype2 --with-wxwidgets --with-fftw --with-
postgres --with-postgres-includes=/usr/include/pgsql --with-blas --with-
blas-includes=/usr/include/atlas-x86_64-base/ --with-lapack --with-lapack-
includes=/usr/include/atlas-x86_64-base/ --with-netcdf --without-motif
--without-bzlib --without-mysql --without-odbc --without-openmp --without-
ffmpeg
gcc
/home/mneteler/software/grass78_git/dist.x86_64-pc-linux-gnu
Traceback (most recent call last):
   File "/home/mneteler/bin/grass78", line 2025, in main
     index = sys.argv.index(batch_exec_param)
ValueError: '--exec' is not in list

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/home/mneteler/bin/grass78", line 2216, in <module>
     main()
   File "/home/mneteler/bin/grass78", line 2030, in main
     params = parse_cmdline(sys.argv[1:], default_gui=default_gui)
   File "/home/mneteler/bin/grass78", line 1951, in parse_cmdline
     print_params()
   File "/home/mneteler/bin/grass78", line 1862, in print_params
     "%s\n" % val[0].split(':')[1].rstrip('$"\n').strip())
IndexError: list index out of range
}}}

It also applies to master.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/4001&gt;
GRASS GIS <https://grass.osgeo.org>

#4001: grass78 --config broken
--------------------------+---------------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.8.3
Component: Python | Version: git-releasebranch78
Resolution: | Keywords: grass.py
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------

Comment (by neteler):

Potentially addressed in PR https://github.com/OSGeo/grass/pull/405

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/4001#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#4001: grass78 --config broken
--------------------------+---------------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.8.3
Component: Python | Version: git-releasebranch78
Resolution: fixed | Keywords: grass.py
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------
Changes (by neteler):

* status: new => closed
* resolution: => fixed

Comment:

Fixed per PR:405

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/4001#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>