refactor: tweak script file handling

This commit is contained in:
2025-03-15 23:35:51 -04:00
parent c7358fd4c0
commit 2040eb0078
4 changed files with 19 additions and 15 deletions

View File

@@ -6,11 +6,11 @@ use std::path::PathBuf;
#[derive(Parser)]
#[command(version = build_info::version_formatted())]
pub struct Arguments {
/// Path to Lua entry point
#[arg(short, long, default_value = "errornowatcher.lua")]
pub script: PathBuf,
/// Path to main Lua file
#[arg(short, long)]
pub script: Option<PathBuf>,
/// Code to execute after loading script
/// Code to execute (after script)
#[arg(short, long)]
pub exec: Option<String>,
}