4
section "some non mode options"
6
option "no-mode" N "a generic option not beloging to any mode" optional
7
option "no-mode2" - "another generic option not beloging to any mode" string optional
9
section "some modes just for testing"
13
defmode "mode1" modedesc="any option of this mode is in contrast with any \
14
option of the other mode\nNotice that this description is quite long so \
15
it may spawn many lines... \
16
fortunately gengetopt will wrap it for you :-)"
18
modeoption "opta" a "string a" multiple mode="mode1" optional
19
modeoption "optA" A "string A" string argoptional mode="mode1" required
20
modeoption "optAmul" M "string M"
21
argoptional string mode="mode1" multiple optional
22
modeoption "optb" b "string b" mode="mode1" optional
24
modeoption "optc" - "string c" mode="mode 2" optional
25
modeoption "optd" d "string d" mode="mode 2" required
27
modeoption "mopt" m "option of my mode" int optional mode="my mode" optional