Skip to content

Commit

Permalink
#265 add scriptname as main arg (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 authored Aug 1, 2024
1 parent 042ca2a commit cacbb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 71,7 @@ impl TranslateModule for Main {
let dollar = meta.gen_dollar();
let args = self.args.clone().map_or_else(
String::new,
|name| format!("{name}=({quote}{dollar}@{quote})")
|name| format!("{name}=({quote}{dollar}0{quote} {quote}{dollar}@{quote})")
);
format!("{args}\n{}", self.block.translate(meta))
}
Expand Down

0 comments on commit cacbb5e

Please sign in to comment.