From a52cbda49215c48e1dda42eddaecbd30570656e8 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Mon, 9 May 2022 11:26:02 +0200 Subject: [PATCH] Document command line flags --- rust2/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rust2/src/lib.rs b/rust2/src/lib.rs index 61af553..8825593 100644 --- a/rust2/src/lib.rs +++ b/rust2/src/lib.rs @@ -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, + /// Use experimental mid-level IR #[clap(long)] pub mir: bool, + /// The file to run pub file: PathBuf, }