Current naming is quite misleading and a little bit confusing.
In GRASS 7 'description' should be required, 'tooltip' optional.
Comments?
The current naming is accurate.
In a GUI, the text used as the "title" of a widget is called a
"label". So in the option/flag structures, the text which is intended
to be used as the label goes in the field named "label".
These fields aren't restricted to the GUI (both are used in the
command-line --help output and HTML documentation), so "tooltip" isn't
appropriate.
In a GUI, the text used as the "title" of a widget is called a
"label". So in the option/flag structures, the text which is intended
to be used as the label goes in the field named "label".
These fields aren't restricted to the GUI (both are used in the
command-line --help output and HTML documentation), so "tooltip" isn't
appropriate.
sorry I couldn't find the previous discussion about this topic. Well,
would make sense to you to make 'label' mandatory. I still see as
confusing: if label not given, description becomes label. My
suggestion is to make 'label' mandatory. If label is too long then is
split into label/description.
> The current naming is accurate.
>
> In a GUI, the text used as the "title" of a widget is called a
> "label". So in the option/flag structures, the text which is intended
> to be used as the label goes in the field named "label".
>
> These fields aren't restricted to the GUI (both are used in the
> command-line --help output and HTML documentation), so "tooltip" isn't
> appropriate.
sorry I couldn't find the previous discussion about this topic. Well,
would make sense to you to make 'label' mandatory. I still see as
confusing: if label not given, description becomes label. My
suggestion is to make 'label' mandatory. If label is too long then is
split into label/description.
What problem is this trying to solve?
AFAICT, all of the requests for changes have been made based upon the
assumption that these fields exist for the GUI and for the GUI alone.
Once you correct that assumption, the current semantics are entirely
rational. Every option needs a "description" of what it's for; that
description goes into the ->description field, which is mandatory.
The ->label field is only useful in one specific case, namely the GUI,
where the description may be too long to use as the option's label;
this is why the ->label field was added.