Skip to content

Commit 618a636

Browse files
committed
add help usage
1 parent 6ad7c55 commit 618a636

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ type TunnelCmd struct {
2626
}
2727

2828
func main() {
29+
if len(os.Args) <= 1 {
30+
PrintUsage()
31+
return
32+
}
2933
var commandList []string
3034
var portList []int
3135
for i, arg := range os.Args {

0 commit comments

Comments
 (0)