From 695c812bf59e3560cc3fef2ef26f6b7bae74b54f Mon Sep 17 00:00:00 2001 From: John Date: Fri, 26 Jul 2024 05:13:06 -0500 Subject: [PATCH] cl-repl: increase jank: first positional arg is main file, remainder are imports --- compiler/cl-repl/src/args.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/cl-repl/src/args.rs b/compiler/cl-repl/src/args.rs index cae9f0f..57dba4e 100644 --- a/compiler/cl-repl/src/args.rs +++ b/compiler/cl-repl/src/args.rs @@ -35,6 +35,10 @@ argwerk::define! { [#[option] path] if file.is_none() => { file = path.map(Into::into); } + + [path] if file.is_some() => { + include.push(path.into()); + } } /// gets whether stdin AND stdout are a terminal, for pipelining