roc-lang / roc

A fast, friendly, functional language.
https://roc-lang.org
Universal Permissive License v1.0
4.46k stars 313 forks source link

make target an argument for preprocess-host #6979

Closed Anton-4 closed 3 months ago

Anton-4 commented 3 months ago

We were trying to get the target argument when the preprocess-host command was called, but that command did not actually have the target argument, it was always using the default value.

I was able to discover his by running the debug compiler with basic-cli's build.roc. Clap has a debug_assertion that checks this.

This was the error I got:

thread 'main' panicked at crates/cli/src/main.rs:166:18:
Mismatch between definition and access of `target`. Unknown argument or group id.  Make sure you are using the argument id and not the short or long flags