]> git.proxmox.com Git - pve-esxi-import-tools.git/commit
esxi: add help and version flags as long and short option
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Apr 2024 16:10:55 +0000 (18:10 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Apr 2024 16:13:25 +0000 (18:13 +0200)
commit01e10b840eeb139abcb4ba117b6ef2a2a3474a39
tree1ca43e1e0c87af675353f89cdd2479cb2f4d40f0
parent936f35152fa4dd050afb10ae6c1170d8c9c72fbc
esxi: add help and version flags as long and short option

even though this is in libexec and not meant for direct use it can be
still useful to get the version of the installed file to compare with
the one of a mounted FS, or to get the help output if one is testing
something manually.

So add the classic -v or --version and the -h or --help flags,
respectively.

Any of those will cause an early (successful) exit.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/main.rs