mirror of
https://github.com/dtomlinson91/csops.git
synced 2025-12-22 05:45:45 +00:00
feat: add --version flag
This commit is contained in:
@@ -3,6 +3,7 @@ import pathlib
|
||||
import subprocess
|
||||
|
||||
from csops import CONFIG
|
||||
from csops._version import __version__
|
||||
|
||||
|
||||
def encrypt(args):
|
||||
@@ -34,6 +35,7 @@ def run():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("flag", type=str, nargs=1)
|
||||
parser.add_argument("file", type=pathlib.Path)
|
||||
parser.add_argument('-v', '--version', action='version', version='%(prog)s ' + __version__)
|
||||
args = parser.parse_args()
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user