--version
- Accepted by
opengrep scan- See also
opengrep show,--show-supported-languages
Prints the version of Opengrep on standard output and exits with status 0, without scanning. Since scan is the default command, opengrep --version works as well, and opengrep show version prints the same version.
Examples
Asking for the version
Command and result
$ opengrep --version
X.Y.Z
$ opengrep scan --version
X.Y.Z