17 lines
319 B
Go
17 lines
319 B
Go
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)
|
|
}
|