parse cli on our own

This commit is contained in:
2026-03-19 13:42:12 +01:00
parent 8758295641
commit efe9dfe238
5 changed files with 78 additions and 278 deletions

View File

@@ -12,7 +12,7 @@ macro_rules! expect_type {
if $expected != "any" && actual != "any" && actual != $expected {
return error!(
$loc,
format!("expected type '{}', got '{}'", $expected, actual)
format!("expected type '{}', got {}", $expected, actual)
);
}
}};
@@ -24,7 +24,7 @@ macro_rules! expect_types {
return error!(
$loc,
format!(
"expected one of [{}], got '{}'",
"expected one of [{}], got {}",
[$( $expected ),+].join(", "),
$expr_type
)