Add install steps
parent
df67fe9925
commit
c0de0bf390
|
@ -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
11
main.go
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue