Skip to content

Single-command flag for macropython CLI #34

@Technologicat

Description

@Technologicat

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions