From f0ffbf0fb2aa9639aff96fc467955cb88b95db79 Mon Sep 17 00:00:00 2001 From: Jake Date: Tue, 24 Sep 2024 14:02:26 -0700 Subject: [PATCH] Add docs for cli --- src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index b5f67a3..832ed1d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,14 +11,20 @@ pub mod lexer; pub mod parse; #[derive(Debug, StructOpt)] -#[structopt(name = "Component", about = "A programming language for math using postfix notation")] +#[structopt( + name = "Component", + about = "A programming language for math using postfix notation" +)] struct Opt { + /// Print the stack and lexer information on each command #[structopt(short, long)] verbose: bool, + /// Use `x86` or `x86-64` to get x86-64 assembly and use `RISCV` or `RISC-V` for RISC-V assembly #[structopt(short, long)] asm: Option, + /// Specify an input Component file to be run #[structopt(short, long)] filename: Option, }