~ubuntu-branches/ubuntu/hardy/gengetopt/hardy

« back to all changes in this revision

Viewing changes to tests/test_modes_cmd.ggo

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-01-29 14:55:40 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080129145540-bkah1bl330gpelmh
Tags: 2.22-1ubuntu1
* Merge with Debian; remaining changes:
  - Fix build failures with g++-4.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package "test_modes"
 
2
version "1.0"
 
3
 
 
4
section "some non mode options"
 
5
 
 
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
 
8
 
 
9
section "some modes just for testing"
 
10
 
 
11
defmode "mode 2"
 
12
defmode "my mode"
 
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 :-)"
 
17
 
 
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
 
23
 
 
24
modeoption "optc" - "string c" mode="mode 2" optional
 
25
modeoption "optd" d "string d" mode="mode 2" required
 
26
 
 
27
modeoption "mopt" m "option of my mode" int optional mode="my mode" optional