VScode stuff

This commit is contained in:
MCorange
2024-03-14 10:04:30 +02:00
parent acc3380bcd
commit 2624d8107b
6 changed files with 24 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
use clap::{builder::PossibleValue, Parser, ValueEnum};
use camino::Utf8PathBuf;
lazy_static::lazy_static! {
static ref DEFAULT_INCLUDE_PATHS: Vec<Utf8PathBuf> = vec![
Utf8PathBuf::from("./"),
@@ -40,12 +41,15 @@ pub struct CliArgs {
pub target: CompilationTarget,
/// Input code files
#[arg(required=true, num_args=1..)]
pub input: Vec<Utf8PathBuf>,
#[clap(skip)]
pub passthrough: Vec<String>
}
impl CliArgs {
pub fn parse_with_passthrough() -> Self {
let mut clap_args = Vec::new();