Skip to content

Commit

Permalink
fix: add warning log for unexpected arguments in open command
Browse files Browse the repository at this point in the history
  • Loading branch information
dido18 committed Jan 13, 2025
1 parent ec5049d commit 2fe3c28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ func checkCmd(m []byte) {
return
}

if len(args) > 3 {
log.Warn(fmt.Sprintf("Unexpected arguments for the open command. Ignored arguments: '%s'.", args[3:]))
}

go spHandlerOpen(args[1], baud)

} else if strings.HasPrefix(sl, "close") {
Expand Down

0 comments on commit 2fe3c28

Please sign in to comment.