@@ -54,8 +54,8 @@ pub fn parse(argv: Vec<OsString>, bin_name: Option<String>) -> anyhow::Result<Ar
5454 {GREEN}-t{RESET}, {GREEN}--template <TEMPLATE>{RESET} Specify the UI template to use [{templates}]
5555 {GREEN}-y{RESET}, {GREEN}--yes{RESET} Skip prompts and use defaults where applicable
5656 {GREEN}-f{RESET}, {GREEN}--force{RESET} Force create the directory even if it is not empty.
57- {GREEN}--alpha {RESET} Bootstraps a project using tauri@2.0-alpha
58- {GREEN}--mobile{RESET} Bootstraps a mobile project too. Only availabe with `--alpha ` option.
57+ {GREEN}--beta {RESET} Bootstraps a project using tauri@2.0-alpha
58+ {GREEN}--mobile{RESET} Bootstraps a mobile project too. Only availabe with `--beta ` option.
5959 {GREEN}-h{RESET}, {GREEN}--help{RESET} Prints help information
6060 {GREEN}-v{RESET}, {GREEN}--version{RESET} Prints version information
6161"# ,
@@ -82,13 +82,18 @@ pub fn parse(argv: Vec<OsString>, bin_name: Option<String>) -> anyhow::Result<Ar
8282 println ! ( "{}" , env!( "CARGO_PKG_VERSION" ) ) ;
8383 std:: process:: exit ( 0 ) ;
8484 }
85+ if pargs. contains ( "--alpha" ) {
86+ eprintln ! (
87+ "{BOLD}{YELLOW}warning{RESET}: The `{GREEN}--alpha{RESET}` option is now an alias for `{GREEN}--beta{RESET}` and may be removed in the future."
88+ ) ;
89+ }
8590
8691 let args = Args {
8792 manager : pargs. opt_value_from_str ( [ "-m" , "--manager" ] ) ?,
8893 template : pargs. opt_value_from_str ( [ "-t" , "--template" ] ) ?,
8994 skip : pargs. contains ( [ "-y" , "--yes" ] ) ,
9095 force : pargs. contains ( [ "-f" , "--force" ] ) ,
91- alpha : pargs. contains ( "--alpha" ) ,
96+ alpha : pargs. contains ( "--alpha" ) || pargs . contains ( "--beta" ) ,
9297 mobile : if pargs. contains ( "--mobile" ) {
9398 Some ( true )
9499 } else {
0 commit comments