commit 7de67507b8beb1dc7a5773bc81e38019385a074c
parent 9214b113cc24a0fa9f10ef121d52e0d9ac7f9926
Author: Sylvia Ivory <git@sivory.net>
Date: Mon, 23 Jun 2025 03:40:45 -0700
Add CLI documentation
Diffstat:
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/main.rs b/src/main.rs
@@ -29,9 +29,18 @@ struct Cli {
#[derive(Subcommand)]
enum Command {
+ /// Enter an interactive REPL session
Repl,
- Run { path: PathBuf },
- Highlight { path: Option<PathBuf> },
+ /// Run a Lua file
+ Run {
+ /// Path to Lua file
+ path: PathBuf
+ },
+ /// Highlight a Lua file
+ Highlight {
+ /// Path to Lua file (default: stdin)
+ path: Option<PathBuf>
+ },
}
fn eval_lua(file: String, path: &Path) -> LuaResult<()> {