Skip to content

Commit

Permalink
feat: update flag description
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev committed Sep 1, 2022
1 parent 7df9365 commit d4127f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Flags:
-cpuprofile string
write CPU profile to this file
-crypto-hash
suggest the use of crypto.Hash
suggest the use of crypto.Hash.String()
-debug string
debug flags, any subset of "fpstv"
-fix
Expand All @@ -48,17 +48,17 @@ Flags:
-source
no effect (deprecated)
-sql-isolation-level
suggest the use of sql.LevelXX
suggest the use of sql.LevelXX.String()
-tags string
no effect (deprecated)
-test
indicates whether test files should be analyzed, too (default true)
-time-layout
suggest the use of time.Layout
-time-month
suggest the use of time.Month
suggest the use of time.Month.String()
-time-weekday
suggest the use of time.Weekday
suggest the use of time.Weekday.String()
-trace string
write trace log to this file
-v no effect (deprecated)
Expand Down
8 changes: 4 additions & 4 deletions pkg/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ func flags() flag.FlagSet {
flags := flag.NewFlagSet("", flag.ExitOnError)
flags.Bool(HTTPMethodFlag, true, "suggest the use of http.MethodXX")
flags.Bool(HTTPStatusCodeFlag, true, "suggest the use of http.StatusXX")
flags.Bool(TimeWeekdayFlag, false, "suggest the use of time.Weekday")
flags.Bool(TimeMonthFlag, false, "suggest the use of time.Month")
flags.Bool(TimeWeekdayFlag, false, "suggest the use of time.Weekday.String()")
flags.Bool(TimeMonthFlag, false, "suggest the use of time.Month.String()")
flags.Bool(TimeLayoutFlag, false, "suggest the use of time.Layout")
flags.Bool(CryptoHashFlag, false, "suggest the use of crypto.Hash")
flags.Bool(CryptoHashFlag, false, "suggest the use of crypto.Hash.String()")
flags.Bool(RPCDefaultPathFlag, false, "suggest the use of rpc.DefaultXXPath")
flags.Bool(OSDevNullFlag, false, "suggest the use of os.DevNull")
flags.Bool(SQLIsolationLevelFlag, false, "suggest the use of sql.LevelXX")
flags.Bool(SQLIsolationLevelFlag, false, "suggest the use of sql.LevelXX.String()")
return *flags
}

Expand Down

0 comments on commit d4127f9

Please sign in to comment.