[GRASS-dev] [GRASS GIS] #2967: [PATCH] Super quiet mode
GRASS GIS
trac at osgeo.org
Wed Mar 23 20:43:02 PDT 2016
#2967: [PATCH] Super quiet mode
--------------------------+-------------------------
Reporter: rouault | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: Parser | Version: svn-trunk
Resolution: | Keywords: patch
CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by wenzeslaus):
* keywords: => patch
* version: unspecified => svn-trunk
* component: Default => Parser
* milestone: 7.0.4 => 7.1.0
Comment:
Replying to [comment:3 mlennert]:
> Replying to [ticket:2967 rouault]:
> > The attached proposed patch adds a --qq option for a super verbose
mode that suppress everything but fatal warnings.
>
> Thanks for the patch. I'm often annoyed by the same issue. I've
committed your patch to trunk in r68092 for further testing.
`--qq` doesn't fit into the idea of shortening options/flags:
{{{
--verbose --v
--quiet --q
}}}
This is applied automatically to the module options (e.g. `input` versus
`in`) and although I'm not sure what is the mechanism for the long
(standard/common) flags I think the general rules should be the same. So
now --q is little ambiguous as it can stand for `--quiet` or `--qq`.
Leaving aside that `--qq` doesn't have the long or short version.
I suggest to use `--xquiet` (X as in XS and XL). But perhaps there might
be an way without letter X.
Please, make also some suggestions on how Python API should be extended,
that's an important part of this change.
I tested the following
{{{
g.region -p --qq --verbose
}}}
and it goes though without any warning. I think the code disables warnings
and then gives a warning.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2967#comment:4>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list