Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

[MRG] Fixed #343: Use @group(name=) instead of overriding HelpFormater.write_usage #344

Closed
wants to merge 2 commits into from
Closed

[MRG] Fixed #343: Use @group(name=) instead of overriding HelpFormater.write_usage #344

wants to merge 2 commits into from

Conversation

dimitern
Copy link
Contributor

Fixes issue #343
In order not to show camelot as the program name in the help output (passing --help), it's enough to set @group(name='camelot') on the main Click group for the CLI. The existing approach which monkey patches click.HelpFormatter.write_usage(), will affect any other Click CLI tool that uses camelot as its dependency, e.g. Excalibur.

Added a test to verify it works as expected in the help output.

@dimitern dimitern changed the title Fixed #343: Use @group(name=) instead of overriding HelpFormater.write_usage [MRG] Fixed #343: Use @group(name=) instead of overriding HelpFormater.write_usage Jun 15, 2019
@dimitern
Copy link
Contributor Author

@vinayak-mehta Hey, it looks like the repository has been renamed from socialcopsdev/camelot to atlanhq/camelot, but the TravisCI config still references the old name, and PRs are not picked up on the new name (likewise with Codecov). Just wanted to let you know. Thanks!

@vinayak-mehta
Copy link
Contributor

It has been renamed back for now. Thanks for raising this PR! Please give me some time to review and merge it :)

@codecov-io
Copy link

Codecov Report

Merging #344 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #344   +/-   ##
=======================================
  Coverage   87.64%   87.64%           
=======================================
  Files          13       13           
  Lines        1505     1505           
  Branches      348      348           
=======================================
  Hits         1319     1319           
  Misses        129      129           
  Partials       57       57
Impacted Files Coverage Δ
camelot/cli.py 86.32% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de97be2...fc28d87. Read the comment docs.

@dimitern
Copy link
Contributor Author

dimitern commented Jul 4, 2019

Closing in favour of camelot-dev/camelot#5

@dimitern dimitern closed this Jul 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants