diff --git a/src/args.rs b/src/args.rs index 009be2b..d648f3e 100644 --- a/src/args.rs +++ b/src/args.rs @@ -9,7 +9,10 @@ pub struct Args { #[arg(value_enum)] pub game: Game, - pub build_path: Option, + #[arg( + help = "URL of build to import on startup. Needs to use custom protocol schema, e.g. `pob://pobbin/`" + )] + pub import_url: Option, } #[derive(Debug, Clone, ValueEnum)] diff --git a/src/lua.rs b/src/lua.rs index f05b123..40cee44 100644 --- a/src/lua.rs +++ b/src/lua.rs @@ -170,9 +170,9 @@ impl LuaInstance { // SAFETY: use `unsafe_new` to allow loading of C modules let lua = unsafe { Lua::unsafe_new() }; - // expose build arg to lua + // expose import url to lua let args = Args::parse(); - let args_table = lua.create_sequence_from(std::iter::once(args.build_path))?; + let args_table = lua.create_sequence_from(std::iter::once(args.import_url))?; lua.globals().set("arg", args_table)?; Self::register_package_paths(&lua)?;