File: quick_example.go

package info (click to toggle)
golang-github-docopt-docopt-go 0.6.2%2Bgit20160216.0.784ddc5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 220 kB
  • ctags: 180
  • sloc: makefile: 11
file content (16 lines) | stat: -rw-r--r-- 352 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package main

import (
	"fmt"
	"github.com/docopt/docopt-go"
)

func main() {
	usage := `Usage:
  quick_example tcp <host> <port> [--timeout=<seconds>]
  quick_example serial <port> [--baud=9600] [--timeout=<seconds>]
  quick_example -h | --help | --version`

	arguments, _ := docopt.Parse(usage, nil, true, "0.1.1rc", false)
	fmt.Println(arguments)
}