Skip to content

Commit

Permalink
Add docs for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeRoggenbuck committed Sep 24, 2024
1 parent 5b9d88f commit f0ffbf0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,

/// Specify an input Component file to be run
#[structopt(short, long)]
filename: Option<String>,
}
Expand Down

0 comments on commit f0ffbf0

Please sign in to comment.