mirror of
https://gitlab.com/khumba/nvd.git
synced 2024-11-10 06:59:29 +01:00
Add the program version via 'nvd --version' and the man page.
This commit is contained in:
parent
95c7ab7070
commit
00495ddf25
2 changed files with 9 additions and 1 deletions
8
src/nvd
8
src/nvd
|
@ -48,6 +48,8 @@ from pathlib import Path
|
||||||
from subprocess import PIPE
|
from subprocess import PIPE
|
||||||
from typing import Dict, List, Optional, Tuple, Union
|
from typing import Dict, List, Optional, Tuple, Union
|
||||||
|
|
||||||
|
NVD_VERSION = "0.1.0"
|
||||||
|
|
||||||
USE_COLOUR = False
|
USE_COLOUR = False
|
||||||
|
|
||||||
SGR_RESET = 0
|
SGR_RESET = 0
|
||||||
|
@ -588,6 +590,12 @@ def parse_args():
|
||||||
epilog="See the nvd(1) manual page for more information.",
|
epilog="See the nvd(1) manual page for more information.",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
parser.add_argument(
|
||||||
|
"--version",
|
||||||
|
action="version",
|
||||||
|
version=f"nvd {NVD_VERSION}",
|
||||||
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--color",
|
"--color",
|
||||||
default="auto",
|
default="auto",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH nvd 1 2021-05-16 nvd "User Commands"
|
.TH nvd 1 2021-05-16 nvd-0.1.0 "User Commands"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
nvd \- Nix/NixOS package version diff tool
|
nvd \- Nix/NixOS package version diff tool
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
|
Loading…
Reference in a new issue