mirror of
https://github.com/Noratrieb/brainfuck.git
synced 2026-01-14 13:35:00 +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)]
|
#[derive(clap::Parser, Default)]
|
||||||
#[clap(author, about)]
|
#[clap(author, about)]
|
||||||
pub struct Args {
|
pub struct Args {
|
||||||
|
/// Print colored source code depending on how often it was run.
|
||||||
|
/// Makes the interpreter ~30% slower.
|
||||||
#[clap(short, long)]
|
#[clap(short, long)]
|
||||||
pub profile: bool,
|
pub profile: bool,
|
||||||
|
/// Dump the IR info (ast, hir, mir, lir)
|
||||||
#[clap(long)]
|
#[clap(long)]
|
||||||
pub dump: Option<DumpKind>,
|
pub dump: Option<DumpKind>,
|
||||||
|
/// Use experimental mid-level IR
|
||||||
#[clap(long)]
|
#[clap(long)]
|
||||||
pub mir: bool,
|
pub mir: bool,
|
||||||
|
/// The file to run
|
||||||
pub file: PathBuf,
|
pub file: PathBuf,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue