File: sample2.ggo

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 (24 lines) | stat: -rw-r--r-- 1,166 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Name of your program
#package "gengetopt-sample"       # don't use package if you're using automake
# Version of your program
#version "1.0.1"                  # don't use version if you're using automake

purpose "this is just a test program for gengetopt"

# Options
option  "str-opt"         s "A string option"      string     optional
option  "int-opt"         i "A int option"         int        required
option  "short-opt"       S "A short option"       short      optional
option  "long-opt"        l "A long option"        long       required
option  "float-opt"       f "A float option"       float      optional
option  "double-opt"      d "A double option"      double     optional
option  "long-double-opt" L "A long double option" longdouble optional
option  "long-long-opt"   y "A long long option"   longlong   optional

option  "func-opt"        F "A function option"    optional 

option  "hidden-opt"        N "A hidden option"    optional hidden

option  "flag-opt"        x "A flag option"        flag       off
# This option turn on or off a flag, last column is the state of the flag when
# program start. If user specify it, flag toggles.