Skip to content

Commit a0a23b3

Browse files
committed
在 main 函数中添加调试信息,输出命令行参数
1 parent 15e93e4 commit a0a23b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/nodapt/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"os/exec"
99

1010
"github.com/axetroy/nodapt/internal/command"
11+
"github.com/axetroy/nodapt/internal/util"
1112
)
1213

1314
var (
@@ -83,6 +84,8 @@ func main() {
8384
showHelp := *helpLongFlag || *helpShortFlag
8485
showVersion := *versionLongFlag || *versionShortFlag
8586

87+
util.Debug("args %v\n", os.Args)
88+
8689
args := flag.Args()
8790

8891
if len(args) == 0 {

0 commit comments

Comments
 (0)