xeol-io / xeol

A scanner for end-of-life (EOL) software and dependencies in container images, filesystems, and SBOMs
https://www.xeol.io/
Apache License 2.0
340 stars 18 forks source link

--lookahead flag reports wrong identifier for Months in help CLI #371

Open stealthrabbi opened 1 month ago

stealthrabbi commented 1 month ago

When you run xeol --help, it reports that for "months" lookahead uses m. However, it doesn't seem to actually accept that value. After some experimentation, I found that a string of "9month" works

Environment:

$ xeol version
Application:         xeol
Version:             0.9.15
BuildDate:           2024-04-27T01:18:39Z
GitCommit:           d60c12a433d120bc863292f857075f9214aba5be
GitDescription:      v0.9.15
Platform:            linux/amd64
GoVersion:           go1.21.9
Compiler:            gc
Syft Version:        v0.92.0
Supported DB Schema: 1
stealthrabbi commented 1 month ago

I think having to type e.g "11month" is fine, but the help guide should reflect that.