[GRASS-git] [OSGeo/grass] 73e293: lib/parser: Use the first allowed values in exampl...

Vaclav Petras noreply at github.com
Mon Jul 21 06:23:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 73e29303a6bf20b1cf576f39ef97812f2e941ba8
      https://github.com/OSGeo/grass/commit/73e29303a6bf20b1cf576f39ef97812f2e941ba8
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2025-07-21 (Mon, 21 Jul 2025)

  Changed paths:
    M lib/gis/parser_md_cli.c
    M lib/gis/parser_md_python.c

  Log Message:
  -----------
  lib/parser: Use the first allowed values in example (#6079)

In the generated example for each tool, use the first allowed value from the list of allowed values in the options field. This can be done for strings only because numbers may have ranges in the options field. Before, simply the type, i.e., string would be printed unless key_desc was defined. For r.series, this is replacing 'string' by 'average' as a value for method in the example.

Apply the same to Python and CLI and sync CLI to Python which adds the fallback number values to CLI example.



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list