1
0
Fork 0

Add install steps

main
Ambrose Chua 2020-06-16 15:54:13 +08:00
parent df67fe9925
commit c0de0bf390
2 changed files with 10 additions and 6 deletions

View File

@ -6,4 +6,9 @@ on your own for now.
I'm working on this in my "free" time in the SIT ICT lab, so I don't have much
time for documentation yet. I still need to do my labs after all.
```
go get github.com/serverwentdown/cisco-ios-apply
apply -help
```
<!-- vim: set conceallevel=2 et ts=2 sw=2: -->

11
main.go
View File

@ -35,19 +35,18 @@ import (
"time"
)
var Usage = func() {
fmt.Fprintf(flag.CommandLine.Output(), "Usage: %s [-port PORT] [-writefile] FILE...\n", os.Args[0])
flag.PrintDefaults()
}
func main() {
flag.Usage = func() {
fmt.Fprintf(flag.CommandLine.Output(), "Usage: %s [-port PORT] [-writefile] FILE...\n", os.Args[0])
flag.PrintDefaults()
}
port := flag.String("port", "/dev/ttyUSB0", "Serial port to write to")
writefile := flag.Bool("writefile", false, "Treat PORT as file, and write to file")
flag.Parse()
confs := flag.Args()
if len(confs) < 1 {
Usage()
flag.Usage()
return
}