Skip to content

Commit

Permalink
fix c670df5
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsq committed Oct 18, 2021
1 parent c670df5 commit ce65948
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/wtc/wtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ func ParseArgs() *Config {
log.Fatal(err)
}

if ok && flag.NArg() == 1 {
trigs = flag.Arg(0)
if ok {
if flag.NArg() == 1 {
trigs = flag.Arg(0)
}
} else {
if flag.NArg() < 2 {
_, _ = fmt.Fprintf(os.Stderr, "No [.]wtc.yaml or valid command provided.\n")
Expand Down

0 comments on commit ce65948

Please sign in to comment.