Debian Codegraph @

examples/arguments/arguments.go

raw symbols SCIP
1 package main
2
3 import (
4 "fmt"
5 "github.com/docopt/docopt-go"
6 )
7
8 var usage = `Usage: arguments [-vqrh] [FILE] ...
9 arguments (--left | --right) CORRECTION FILE
10
11 Process FILE and optionally apply correction to either left-hand side or
12 right-hand side.
13
14 Arguments:
15 FILE optional input file
16 CORRECTION correction angle, needs FILE, --left or --right to be present
17
18 Options:
19 -h --help
20 -v verbose mode
21 -q quiet mode
22 -r make report
23 --left use left-hand side
24 --right use right-hand side`
25
26 func main() {
27 arguments, _ := docopt.ParseDoc(usage)
28 fmt.Println(arguments)
29 }