File: test_modes_cmd.ggo.texinfo

package info (click to toggle)
gengetopt 2.22.6+dfsg0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,732 kB
  • sloc: cpp: 14,709; sh: 11,845; ansic: 8,030; makefile: 689; yacc: 514; lex: 171; sed: 3
file content (31 lines) | stat: -rw-r--r-- 1,129 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@c Generator: GNU source-highlight, by Lorenzo Bettini, http://www.gnu.org/software/src-highlite
@example
package "test_modes"
version "1.0"

section "some non mode options"

option "no-mode" N "a generic option not beloging to any mode" optional
option "no-mode2" - "another generic option not beloging to any mode" string optional

section "some modes just for testing"

defmode "mode 2"
defmode "my mode"
defmode "mode1" modedesc="any option of this mode is in contrast with any \
option of the other mode\nNotice that this description is quite long so \
it may spawn many lines...              \
fortunately gengetopt will wrap it for you :-)"

modeoption "opta" a "string a" multiple mode="mode1" optional
modeoption "optA" A "string A" string argoptional mode="mode1" required
modeoption "optAmul" M "string M" 
        argoptional string mode="mode1" multiple optional
modeoption "optb" b "string b" mode="mode1" optional

modeoption "optc" - "string c" mode="mode 2" optional
modeoption "optd" d "string d" mode="mode 2" required

modeoption "mopt" m "option of my mode" int optional mode="my mode" optional

@end example