Filter out copyright and license information from the version output
afbjorklund opened this issue · 2 comments
afbjorklund commented
Some commands output copyright and license information, with --version
.
It should be filtered out, when reporting version with the version.Program
.
slirp4netns:
executable: /usr/local/libexec/podman/slirp4netns
package: Unknown
version: |-
slirp4netns version 1.2.3
commit: c22fde291bb35b354e6ca44d13be181c76a0a432
libslirp: 4.1.0
SLIRP_CONFIG_VERSION_MAX: 3
libseccomp: 2.5.1
pasta:
executable: /usr/local/libexec/podman/pasta
package: Unknown
version: |
pasta 2024_02_20.1e6f92b
Copyright Red Hat
GNU General Public License, version 2 or later
<https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
rhatdan commented
Not sure if I am comfortable with trimming this output out without being really hacky, perhaps it would be better to ask pasta to not output the License information in its output.
afbjorklund commented
I guess passt doesn't really have versions (it's more like dates)