Skip to content

Commit

Permalink
Added --log to scanner usage string
Browse files Browse the repository at this point in the history
* Added missing --log option in scanner usage string (+ angle brackets
  around option values).
* Also fixed usage and scanner name in README (+ wrapped text to
  accomodate narrower displays).
  • Loading branch information
cypriani authored and hillu committed Dec 16, 2021
1 parent 5462046 commit 6239f06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion scanner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <path>] [--log <file>] [ paths ... ]\n", os.Args[0])
os.Exit(1)
}

Expand Down

0 comments on commit 6239f06

Please sign in to comment.