From 3f039ae31ba7ffb75460a1952b994f7a0c8ff5c6 Mon Sep 17 00:00:00 2001 From: Daniil Fajnberg Date: Sun, 25 Jul 2021 16:33:26 +0200 Subject: [PATCH] output format with arg choices --- src/soupjobs/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soupjobs/run.py b/src/soupjobs/run.py index 855e917..b9982d1 100644 --- a/src/soupjobs/run.py +++ b/src/soupjobs/run.py @@ -49,7 +49,8 @@ if __name__ == '__main__': parser.add_argument( '-o', '--output-format', type=str, - help="Set to either 'yaml', 'json' or 'simple' format" + choices=['simple', 'yaml', 'json'], + help="Determines the format in which results are returned to stdout" ) kwargs = vars(parser.parse_args()) os.environ[CONFIG_FILE_ENV_VAR] = str(kwargs.pop('config_file'))