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

Show simple documentation on how to use when running npx @svgr/cli #349

Closed
lwkchan opened this issue Oct 22, 2019 · 3 comments
Closed

Show simple documentation on how to use when running npx @svgr/cli #349

lwkchan opened this issue Oct 22, 2019 · 3 comments
Labels
v5 Released in v5

Comments

@lwkchan
Copy link

lwkchan commented Oct 22, 2019

🚀 Feature Proposal

After installing the @svgr/cli package, user should simply be able to run npx @svgr/cli without any parameters and see simple documentation on how to use the cli tool.

Motivation

I spent a while trying to figure out how to use the @svgr/cli tool after trying countless times to run npx @svgr/cli. The result, just a hanging terminal which does not stop the node process.

I tried to run this command simply to find out whether the tool was installed properly. (a bit like just running npm in the terminal and seeing how to use it).

Example

As a start, we could just put its simple usage as shown the documentation

$ npx @svgr/cli
Usage: npx @svgr/cli [-d out-dir] [src-dir]

The Pitch

This would allow the user to see simply how to use the tool and that the tool has been installed correctly.

@gregberge
Copy link
Owner

Hello @lwkchan, unfortunately it is not possible because it would break the stdin usage:

npx @svgr/cli < file.svg

@gregberge gregberge reopened this Dec 23, 2019
@gregberge
Copy link
Owner

Oh maybe its possible, it worth the try!

@gregberge gregberge added the v5 Released in v5 label Dec 23, 2019
@gregberge
Copy link
Owner

Will be fixed in v5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v5 Released in v5
Projects
None yet
Development

No branches or pull requests

2 participants