Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the naked invocation display a compacted help #1296

Merged
merged 3 commits into from
Mar 7, 2022

Conversation

isidentical
Copy link
Contributor

@isidentical isidentical commented Feb 8, 2022

E.g:

$ http           
usage:
    http [METHOD] URL [REQUEST_ITEM ...]

error:
    the following arguments are required: URL

For more information:
    - Try running http --help
    - Or visiting https://httpie.io/docs/cli

@isidentical isidentical force-pushed the compact-help branch 2 times, most recently from 1a9d0fb to 9e80206 Compare February 21, 2022 15:57
@codecov-commenter
Copy link

codecov-commenter commented Feb 21, 2022

Codecov Report

Merging #1296 (e4ff88d) into master (4d7d6b6) will decrease coverage by 0.74%.
The diff coverage is 95.12%.

❗ Current head e4ff88d differs from pull request most recent head ab5b47a. Consider uploading reports for the commit ab5b47a to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1296      +/-   ##
==========================================
- Coverage   97.28%   96.53%   -0.75%     
==========================================
  Files          67       86      +19     
  Lines        4235     6040    +1805     
==========================================
+ Hits         4120     5831    +1711     
- Misses        115      209      +94     
Impacted Files Coverage Δ
tests/test_binary.py 100.00% <ø> (ø)
httpie/compat.py 31.11% <27.90%> (-68.89%) ⬇️
tests/conftest.py 77.14% <58.33%> (-9.82%) ⬇️
httpie/output/lexers/http.py 59.09% <59.09%> (ø)
tests/test_ssl.py 91.01% <66.66%> (-3.93%) ⬇️
httpie/manager/__main__.py 82.35% <82.35%> (ø)
httpie/output/lexers/metadata.py 82.35% <82.35%> (ø)
httpie/models.py 94.23% <90.00%> (-3.14%) ⬇️
tests/test_uploads.py 97.70% <92.59%> (-2.30%) ⬇️
httpie/manager/core.py 92.85% <92.85%> (ø)
... and 75 more

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 55087a9...ab5b47a. Read the comment docs.

tests/test_cli_ui.py Outdated Show resolved Hide resolved
httpie/cli/argparser.py Outdated Show resolved Hide resolved
@isidentical
Copy link
Contributor Author

@jakubroztocil as requested, I've separated the docs URL from the --help part, and explicitly mentioned about running http --help.

@isidentical isidentical requested a review from jkbrzt March 7, 2022 12:49
@isidentical isidentical merged commit b5623cc into httpie:master Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants