From ba10f8b64ca85883e6d5bd3bde17e7e8de74ab32 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Sun, 6 Apr 2025 13:20:24 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dipv6=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- cmd/main.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 66fc4d5..804b5a1 100644 --- a/README.md +++ b/README.md @@ -55,10 +55,10 @@ backtrace ``` Usage: backtrace [options] - -e Enable logging - -h Show help information - -s Disabe show ip info (default true) - -v Show version + -log Enable logging + -h Show help information + -s Disabe show ip info (default true) + -v Show version ``` ## 卸载 diff --git a/cmd/main.go b/cmd/main.go index 929f1cb..63c3e8f 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -30,7 +30,7 @@ func main() { backtraceFlag.BoolVar(&help, "h", false, "Show help information") backtraceFlag.BoolVar(&showVersion, "v", false, "Show version") backtraceFlag.BoolVar(&showIpInfo, "s", true, "Disabe show ip info") - backtraceFlag.BoolVar(&backtrace.EnableLoger, "e", false, "Enable logging") + backtraceFlag.BoolVar(&backtrace.EnableLoger, "log", false, "Enable logging") backtraceFlag.BoolVar(&test, "test", false, "Test Mode") backtraceFlag.Parse(os.Args[1:]) if help {