|
From: Petr M. <mi...@ph...> - 2003-11-12 15:49:02
|
> > show palette palette <n> {float | int}
>
> show palette palette <n> { | float | int }
> show palette palette <n> {{float | int}}
>
> to indicate that {float|int} is optional.
Now, I have it working that way.
However, I wonder about the documentation syntax above. Yes, there are some
commands with help written as
set xxxxx {
{ opt 1 | opt2 }
{ opt3 | opt5 }
}
but is this somewhere documented that {{bla1 | bla2}} means something
an additional option, instead of a compulsory of {bla1 bla2}? I don't see
it -- from 'help':
In this document, curly braces ({}) denote optional arguments and a
vertical
bar (|) separates mutually exclusive choices. `gnuplot` keywords or `help`
topics are indicated by backquotes or `boldface` (where available). Angle
brackets (<>) are used to mark replaceable tokens. In many cases, a
default
value of the token will be taken for optional arguments if the token is
omitted, but these cases are not always denoted with braces around the
angle brackets.
Looking to help of some commands, it does not seem very unified. See e.g.
'help format' vs 'help log'.
It would be worth if someone goes through gnuplot.doc and makes it all
right.
---
Petr Mikulik
|