From 706882843b73cccf98a70f37291c11bb87a7163b Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Fri, 5 Jul 2019 12:35:41 +0200 Subject: [PATCH] Add --version --- muse_psfr/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/muse_psfr/cli.py b/muse_psfr/cli.py index 32cf219..13c2b5a 100644 --- a/muse_psfr/cli.py +++ b/muse_psfr/cli.py @@ -37,6 +37,7 @@ def main(args=None): addarg('--verbose', '-v', action='store_true', help='verbose flag') addarg('--no-color', action='store_true', help='no color in output') addarg('--plot', action='store_true', help='plot reconstructed psf') + addarg('--version', action='version', version='%(prog)s ' + __version__) args = parser.parse_args(args) logger.info('MUSE-PSFR version %s', __version__)