Skip to content

Commit

Permalink
Updated flag naming to typescript_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
RareSecond committed Apr 5, 2024
1 parent 0b9e065 commit 8f29c0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/sozo/src/commands/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct BuildArgs {

#[arg(long)]
#[arg(help = "Generate Typescript bindings.")]
pub typescript2: bool,
pub typescript_v2: bool,

#[arg(long)]
#[arg(help = "Generate Unity bindings.")]
Expand All @@ -36,7 +36,7 @@ impl BuildArgs {
builtin_plugins.push(BuiltinPlugins::Typescript);
}

if self.typescript2 {
if self.typescript_v2 {
builtin_plugins.push(BuiltinPlugins::TypeScriptV2);
}

Expand Down Expand Up @@ -79,7 +79,7 @@ mod tests {
bindings_output: "generated".to_string(),
typescript: true,
unity: true,
typescript2: true,
typescript_v2: true,
};
let result = build_args.run(&config);
assert!(result.is_ok());
Expand Down

0 comments on commit 8f29c0a

Please sign in to comment.