Skip to content

Commit

Permalink
Lowercase the CLI arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed Jan 12, 2023
1 parent 5f791e0 commit 2fbccb2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ Combine producers and consumers as needed:
```
chroma-feedback [options]
-V, --version
-P, --producer <producer>
-C, --consumer <consumer>
-I, --background-interval <background-interval>
-B, --background-run
-D, --dry-run
-L, --log-level
-p, --producer <producer>
-c, --consumer <consumer>
-i, --background-interval <background-interval>
-b, --background-run
-d, --dry-run
-l, --log-level
-v, --version
-h, --help
```

Expand Down
14 changes: 7 additions & 7 deletions chroma_feedback/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 2fbccb2

Please sign in to comment.