From 2fbccb2341a99b91c37440efd398cd00833e61d3 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Thu, 12 Jan 2023 10:58:12 +0100 Subject: [PATCH] Lowercase the CLI arguments --- README.md | 14 +++++++------- chroma_feedback/core.py | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 3876daa..6ef1215 100644 --- a/README.md +++ b/README.md @@ -48,13 +48,13 @@ Combine producers and consumers as needed: ``` chroma-feedback [options] --V, --version --P, --producer --C, --consumer --I, --background-interval --B, --background-run --D, --dry-run --L, --log-level +-p, --producer +-c, --consumer +-i, --background-interval +-b, --background-run +-d, --dry-run +-l, --log-level +-v, --version -h, --help ``` diff --git a/chroma_feedback/core.py b/chroma_feedback/core.py index 707ce2d..63ec6c9 100644 --- a/chroma_feedback/core.py +++ b/chroma_feedback/core.py @@ -10,13 +10,13 @@ def cli() -> None: signal.signal(signal.SIGINT, lambda signal_number, frame: destroy()) program = ArgumentParser() - program.add_argument('-V', '--version', action = 'version', version = metadata.get('name') + ' ' + metadata.get('version')) - program.add_argument('-P', '--producer', action = 'append', choices = producer.ALL, required = True) - program.add_argument('-C', '--consumer', action = 'append', choices = consumer.ALL, required = helper.has_argument('--dry-run') is False and helper.has_argument('-D') is False) - program.add_argument('-I', '--background-interval', default = 60, type = int) - program.add_argument('-B', '--background-run', action = 'store_true') - program.add_argument('-D', '--dry-run', action = 'store_true') - program.add_argument('-L', '--log-level', default = 'info', choices = logger.get_log_level()) + program.add_argument('-p', '--producer', action = 'append', choices = producer.ALL, required = True) + program.add_argument('-c', '--consumer', action = 'append', choices = consumer.ALL, required = helper.has_argument('-d') is False and helper.has_argument('--dry-run') is False) + program.add_argument('-b', '--background-run', action = 'store_true') + program.add_argument('-i', '--background-interval', default = 60, type = int) + program.add_argument('-d', '--dry-run', action = 'store_true') + program.add_argument('-l', '--log-level', default = 'info', choices = logger.get_log_level()) + program.add_argument('-v', '--version', action = 'version', version = metadata.get('name') + ' ' + metadata.get('version')) init(program)