mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
11 lines
154 B
Go
11 lines
154 B
Go
package config
|
|
|
|
import "flag"
|
|
|
|
func ReadFromCommandLine(cfg *Config) {
|
|
flag.Parse()
|
|
paths := flag.Args()
|
|
if len(paths) != 0 {
|
|
cfg.Paths = paths
|
|
}
|
|
}
|