[GRASS-git] [OSGeo/grass] 228e3a: init: Add mapset, CRS to no CRS needed error (#2446)

Vaclav Petras noreply at github.com
Tue Jul 26 10:14:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 228e3a75700e9c823d06574c5a223ed03d6d0651
      https://github.com/OSGeo/grass/commit/228e3a75700e9c823d06574c5a223ed03d6d0651
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2022-07-26 (Tue, 26 Jul 2022)

  Changed paths:
    M lib/init/grass.py

  Log Message:
  -----------
  init: Add mapset, CRS to no CRS needed error (#2446)

Although -ec, -e -c, and -c -e work as expected when creating a new mapset, -ce leads to e being interpreted as CRS. This is a correct and common behavior which cannot be disabled in argparse. The new error message includes the mapset name and the parsed CRS to cover the -ce case while remaining focused on the location versus mapset case.




More information about the grass-commit mailing list