[GRASS-git] [OSGeo/grass] 968dd7: grass.pygrass: Support shortened parameter values ...

Vaclav Petras noreply at github.com
Thu Dec 21 10:21:05 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 968dd706166b0f74086b81bdd5d19287eaa5fda5
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2023-12-21 (Thu, 21 Dec 2023)

  Changed paths:
    M python/grass/pygrass/modules/interface/parameter.py
    A vector/v.to.rast/testsuite/test_v_to_rast.py

  Log Message:
  grass.pygrass: Support shortened parameter values (#3275)

Command line interface parser allows parameter (option) values such as 'val' when full value should be 'value'. Parameter class from pygrass does the checking, but does not know about these rules. This addition covers the simple case of val-value which is not much work to implement and maintain. It does not cover more complex cases with underscores and legacy aliases.

The test covers the issue for use=value change in v.to.rast made in #3110.

Strict checking in pygrass is discussed in #3237.

More information about the grass-commit mailing list