Skip to content

Commit

Permalink
Release v0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Aug 23, 2016
1 parent b48eb66 commit 9b08a70
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ import (

var (
flagHost, flagCmd, flagCmdfrom, flagHostfrom, flagLogdir string
flagPipe bool
flagPipe, flagVersion bool
wg sync.WaitGroup
cfg config
version = "0.2"
)

func init() {
Expand All @@ -28,11 +29,18 @@ func init() {
flag.StringVar(&flagHostfrom, "host-from", "", "file containing hosts")
flag.StringVar(&flagLogdir, "logdir", "", "directory to log output")
flag.BoolVar(&flagPipe, "pipe", false, "pipe to stdin")
flag.BoolVar(&flagVersion, "version", false, "show version")
flag.Parse()

if flagVersion {
fmt.Println("Version:", version)
return
}
if flagHost == "" && flagHostfrom == "" {
flag.PrintDefaults()
return
}

cfg = readConfig("cssh.conf")
}

Expand Down

0 comments on commit 9b08a70

Please sign in to comment.