diff --git a/README.md b/README.md index 15d99f6..3e6f7c1 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,10 @@ page. # Using the scanner -``` console -$ ./log4j-vuln-scanner [--verbose] [--ignore-v1] [--exclude /path/to/exclude …] /path/to/app1 /path/to/app2 … +``` +$ ./local-log4j-vuln-scanner [--verbose] [--quiet] [--ignore-v1] \ + [--exclude /path/to/exclude …] [--log /path/to/file.log] \ + /path/to/app1 /path/to/app2 … ``` The `--verbose` flag will show every .jar and .war file checked, even if no problem is found. diff --git a/scanner/main.go b/scanner/main.go index 51bd56d..ccbf189 100644 --- a/scanner/main.go +++ b/scanner/main.go @@ -117,7 +117,7 @@ func main() { } if len(os.Args) < 2 { - fmt.Fprintf(os.Stderr, "Usage: %s [--verbose] [--quiet] [--ignore-v1] [--exclude path] [ paths ... ]\n", os.Args[0]) + fmt.Fprintf(os.Stderr, "Usage: %s [--verbose] [--quiet] [--ignore-v1] [--exclude ] [--log ] [ paths ... ]\n", os.Args[0]) os.Exit(1) }