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
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: