Skip to content
Snippets Groups Projects
Commit a21ca4cb authored by Paolo Veglio's avatar Paolo Veglio
Browse files

added version to CLI

parent 66e9f669
No related branches found
No related tags found
No related merge requests found
import argparse
from glob import glob
from pkg_resources import get_distribution
from mvcm.main import main
......@@ -23,6 +24,8 @@ _ndvi_file = 'NDVI.FM.c004.v2.0.WS.00-04.177.hdf'
_sst_file = 'oisst.20220622'
_eco_file = 'goge1_2_img.v1'
_VERSION = get_distribution('mvcm').version
def mvcm():
......@@ -64,7 +67,7 @@ def mvcm():
help='Ecosystem file')
parser.add_argument('-o', '--out',
help='output file name')
parser.add_argument('-V', '--version', action='version', version='',
parser.add_argument('-V', '--version', action='version', version=_VERSION,
help='print version and exit')
parser.add_argument('-v', '--verbose', action='store_true',
help='print verbose information')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment