File: test_usage_cmd.ggo

package info (click to toggle)
gengetopt 2.23%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 5,032 kB
  • sloc: cpp: 14,765; ansic: 8,232; sh: 4,782; makefile: 754; yacc: 514; lex: 179; sed: 3
file content (16 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# ~/work/gengetopt/gengetopt/build/src/gengetopt -i cmdline.ggo && make cmdline.o

package "foo"
version "1.0"

purpose "Highlight the syntax of a source file (e.g. Java) into a specific format (e.g. HTML)"
usage 
"1. source-highlight [OPTIONS]... < input_file > output_file
       2. source-highlight [OPTIONS]... -i input_file -o output_file\n       3. source-highlight [OPTIONS]... [FILES]..."

# Options
option "input"          i  "input file. default std input"      string  typestr="filename"   no
option "output"         o  "output file. default 
std output (when the third invocation form is used). 
If STDOUT\n is specified, the output is directed to standard output"      string  typestr="filename"   no