Skip to content

Commit cfa3e41

Browse files
committed
fix: fix --tauri-version 2 parsing
closes #829
1 parent 6b6f978 commit cfa3e41

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changes/tauri-version.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"create-tauri-app": "patch"
3+
"create-tauri-app-js": "patch"
4+
---
5+
6+
Fix `--tauri-version 2` flag not working.
7+

src/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl FromStr for TauriVersion {
3535
fn from_str(s: &str) -> Result<Self, Self::Err> {
3636
match s {
3737
"1" => Ok(Self::V1),
38-
"2" => Ok(Self::V1),
38+
"2" => Ok(Self::V2),
3939
_ => Err("unknown Tauri version"),
4040
}
4141
}

0 commit comments

Comments
 (0)