mirror of
https://github.com/Noratrieb/brainfuck.git
synced 2026-01-14 21:35:02 +01:00
Document command line flags
This commit is contained in:
parent
64e5ac616f
commit
a52cbda492
1 changed files with 5 additions and 0 deletions
|
|
@ -23,12 +23,17 @@ pub mod parse;
|
|||
#[derive(clap::Parser, Default)]
|
||||
#[clap(author, about)]
|
||||
pub struct Args {
|
||||
/// Print colored source code depending on how often it was run.
|
||||
/// Makes the interpreter ~30% slower.
|
||||
#[clap(short, long)]
|
||||
pub profile: bool,
|
||||
/// Dump the IR info (ast, hir, mir, lir)
|
||||
#[clap(long)]
|
||||
pub dump: Option<DumpKind>,
|
||||
/// Use experimental mid-level IR
|
||||
#[clap(long)]
|
||||
pub mir: bool,
|
||||
/// The file to run
|
||||
pub file: PathBuf,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue