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

Use click for CLI and implement the -c argument #10

Merged
merged 1 commit into from Jul 2, 2021

Conversation

ToxicKidz
Copy link
Contributor

click is a cool package that makes CLI commands easy. This PR uses click for commands and adds the -c argument.

Usage:

$ python -m swas
Swas 1.8.3
swas > output "Hello, World!"
Hello, World!

$ python -m swas test.swas
Hello, World!

$ python -m swas -c "output 'Hello, World!'"
Hello, World!

@CodeWithSwastik CodeWithSwastik merged commit dea8d44 into CodeWithSwastik:main Jul 2, 2021
@ToxicKidz ToxicKidz deleted the feat/click branch July 2, 2021 21:16
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.

None yet

2 participants