File: quick.go

package info (click to toggle)
golang-github-docopt-docopt-go 0.6.2%2Bgit20180111.ee0de3b-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 284 kB
  • sloc: makefile: 10
file content (16 lines) | stat: -rw-r--r-- 319 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 tcp <host> <port> [--timeout=<seconds>]
  quick serial <port> [--baud=9600] [--timeout=<seconds>]
  quick -h | --help | --version`

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