Skip to content

Commit

Permalink
add to 'norminette version' shows information about Python and OS ver…
Browse files Browse the repository at this point in the history
…sion
  • Loading branch information
NiumXp committed Jan 24, 2024
1 parent eb78a9e commit 319714c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion norminette/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import glob
import sys
import pathlib
import platform
from importlib.metadata import version

import argparse
Expand All @@ -13,6 +14,10 @@

import subprocess

version_text = "norminette" + version("norminette")
version_text += f", Python {platform.python_version()}"
version_text += f", {platform.platform()}"


def main():
parser = argparse.ArgumentParser()
Expand All @@ -39,7 +44,7 @@ def main():
"-v",
"--version",
action="version",
version="norminette " + version("norminette"),
version=version_text,
)
parser.add_argument(
"--cfile",
Expand Down

0 comments on commit 319714c

Please sign in to comment.