Subversion Repositories wimsdev

Rev

Rev 11223 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11223 Rev 11292
Line 2... Line 2...
2
tit:getopt
2
tit:getopt
3
type:$type_both
3
type:$type_both
4
syntax:!getopt `name' in `string'
4
syntax:!getopt ``name'' in ``string''
5
mean:This command allows to extract the definition of a word in `string' under the form `name=value'.\
5
mean:This command allows to extract the definition of a word in ``string'' under the form ``name=value''.\
6
  <p>\
6
  <p>\
7
  It returns the defined `value' in the string, or the `name' itself if it appears in `string'\
7
  It returns the defined ``value'' in the string, or the ``name'' itself if it appears in ``string''\
8
  but if there is no `=' sign following it, or an empty string if `name' does not appear \
8
  but if there is no ``='' sign following it, or an empty string if ``name'' does not appear \
9
  in `string' as a word.\
9
  in ``string'' as a word.\
10
  </p><p>\
10
  </p><p>\
11
  `value' can be a multi-word string, if it is enclosed by a pair of parentheses, brackets, \
11
  ``value'' can be a multi-word string, if it is enclosed by a pair of parentheses, brackets, \
12
  curly braces or double quotes. The enclosing parentheses etc. will be removed from the output.\
12
  curly braces or double quotes. The enclosing parentheses etc. will be removed from the output.\
13
  </p><p>\
13
  </p><p>\
14
  Spaces are allowed before and/or after the `=' sign.\
14
  Spaces are allowed before and/or after the ``='' sign.\
15
  </p>
15
  </p>