Skip to content
Snippets Groups Projects

mrhlpr, mrtest: Add --version command

Merged Newbyte requested to merge newbyte/version-cmd into master
All threads resolved!
4 files
+ 26
1
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 4
0
@@ -16,6 +16,7 @@ from . import ci_labels # type: ignore[attr-defined]
from . import git
from . import gitlab
from . import mr
from . import version
def print_status(mr_id: int, no_cache: bool = False) -> None:
@@ -178,6 +179,9 @@ def parse_args() -> argparse.Namespace:
action="store_true",
help="display debug log: all git commands and" " locations of http cache files",
)
parser.add_argument(
"-V", "--version", action="version", version=version.get_full_version_information()
)
sub = parser.add_subparsers(title="action", dest="action")
sub.required = True
Loading