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

Single-command flag for macropython CLI #34

Open
Technologicat opened this issue Nov 16, 2022 · 0 comments
Open

Single-command flag for macropython CLI #34

Technologicat opened this issue Nov 16, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Technologicat
Copy link
Owner

The incantation python -c 'import foo; print(foo.__version__)' is pretty useful for checking library versions.

It would be useful to have this in macropython, too, but currently, it only supports files and an interactive shell.

Also, for macropython the -c flag means something completely different (clean pycache dirs), because I completely forgot about Python's standard -c flag when I implemented the cache cleaner.

Perhaps the best solution is to rename our nonstandard flag to -C, but that must wait for 4.0.

@Technologicat Technologicat added the enhancement New feature or request label Nov 16, 2022
@Technologicat Technologicat added this to the 3.x milestone Nov 16, 2022
@Technologicat Technologicat self-assigned this Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant