microsoft / microsoft/typespec
Boolean option properties are not parsed as booleans when passed via command line
Open
bug
compiler:core
needs-area
triaged:core
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
For boolean properties passed via command line, e.g.
```
--option @typespec/http-client-csharp.new-project=false
```
the option ends up getting parsed as a string even though the option's schema defines it as a boolean. It is parsed correctly as a boolean when using tspconfig.yaml.
The compiler should attempt to parse it as a boolean (based on the schema) regardless of whether using config or command line.
Contributor guide
Assessment
This issue has not been assessed yet.