Add `coconut -m` support
Open
feature
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
Should look up the module for import, compile it, then run `python -m` to execute it. Should be incompatible with `-r` or `-i`. Should also work for `coconut-run` and should immediately go to `--argv` after `-m module` when using `coconut-run -m`.
Contributor guide
Research direction
Start by tracing argument parsing and execution for the `coconut` and `coconut-run` commands, especially handling of `-m`, `-r`, `-i`, and `--argv`. Done means `-m module` looks up and compiles the module before running it with `python -m`, rejects incompatible modes, and passes directly to `--argv` for `coconut-run`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100