Skip to content

Commit

Permalink
Disable empty help from CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed Jan 26, 2024
1 parent 00e6732 commit 94c47c0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ chroma-feedback [options]
-d, --dry-run
-l, --log-level
-v, --version
-h, --help
```


Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def cli() -> None:
signal.signal(signal.SIGINT, lambda signal_number, frame: destroy())
program = ArgumentParser()
program = ArgumentParser(add_help = False)
program.add_argument('-p', '--producer', action = 'append', choices = producer.ALL, required = True)
program.add_argument('-c', '--consumer', action = 'append', choices = consumer.ALL, required = not helper.has_argument('-d') and not helper.has_argument('--dry-run'))
program.add_argument('-b', '--background-run', action = 'store_true')
Expand Down
2 changes: 1 addition & 1 deletion chroma_feedback/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
'name': 'chroma-feedback',
'description': 'Turn your RGB powered hardware into a status indicator for continuous integration, continuous deployment and infrastructure monitoring',
'version': '13.2.2',
'version': '13.3.0',
'license': 'MIT',
'keywords': ' '.join(producer.ALL),
'author': 'Henry Ruhs',
Expand Down

0 comments on commit 94c47c0

Please sign in to comment.