Skip to content

Commit 2fe3c28

Browse files
committed
fix: add warning log for unexpected arguments in open command
1 parent ec5049d commit 2fe3c28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hub.go

+4
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ func checkCmd(m []byte) {
147147
return
148148
}
149149

150+
if len(args) > 3 {
151+
log.Warn(fmt.Sprintf("Unexpected arguments for the open command. Ignored arguments: '%s'.", args[3:]))
152+
}
153+
150154
go spHandlerOpen(args[1], baud)
151155

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

0 commit comments

Comments
 (0)