[GRASS-dev] [GRASS GIS] #2317: G7: t.* modules suboptimal flag name -h, change to -c

#2317: G7: t.* modules suboptimal flag name -h, change to -c
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Temporal | Version: svn-releasebranch70
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
The temporal modules use a suboptimal flag name (raising confusion
between -h versus --h). This affects several t.* modules:

{{{
currently:
   -h Print the column names as first row
  --h Print usage summary
}}}

IMHO it is better to invert this behaviour as to "-c" in v.db.select:

{{{
   -c Do not include column names in output
}}}

unless there is a strong need to NOT put the column names by default
(which I think would be helpful for the user).

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

#2317: G7: t.* modules suboptimal flag name -h, change to -c
------------------------------+---------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Temporal | Version: svn-releasebranch70
Keywords: interface, flags | Platform: Unspecified
      Cpu: Unspecified |
------------------------------+---------------------------------------------
Changes (by wenzeslaus):

  * keywords: => interface, flags

Comment:

I'm not sure but I agree, just reading a command

{{{
t.rast.univar tempmean where="start_time < '2010-01-01'" -h
}}}

and wondering if -h is a mistake or not and then I remembered this ticket.

The reasons why I'm not sure are:
  * `-c` as a column to *not* adding columns (general problem of many
flags)
  * what should be the default, user friendly output or parseable output?
(consider e.g. g.mlist and g.list)

Anyway, I'm for the change. (I cannot do it now but I guess it is easy
once approved.)

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2317#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2317: G7: t.* modules suboptimal flag name -h, change to -c
------------------------------+---------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Temporal | Version: svn-releasebranch70
Keywords: interface, flags | Platform: Unspecified
      Cpu: Unspecified |
------------------------------+---------------------------------------------

Comment(by huhabla):

Please try r61071.

I have changed the -h flag into -s to suppress column name printing in
several modules. Hence, column names are printed by default. Exception is
t.list that now has a -c flag to print column names.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2317#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#2317: G7: t.* modules suboptimal flag name -h, change to -c
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Temporal | Version: svn-releasebranch70
Resolution: fixed | Keywords: interface, flags
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by neteler):

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

Comment:

Thanks, closing.

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