30 lines
612 B
Go
Raw Normal View History

2021-11-22 16:05:02 +00:00
package main
import (
"fmt"
"github.com/docopt/docopt-go"
)
var usage = `Usage: arguments [-vqrh] [FILE] ...
arguments (--left | --right) CORRECTION FILE
Process FILE and optionally apply correction to either left-hand side or
right-hand side.
Arguments:
FILE optional input file
CORRECTION correction angle, needs FILE, --left or --right to be present
Options:
-h --help
-v verbose mode
-q quiet mode
-r make report
--left use left-hand side
--right use right-hand side`
func main() {
arguments, _ := docopt.ParseDoc(usage)
fmt.Println(arguments)
}