1
0
This commit is contained in:
Jeff 2024-01-17 12:48:51 -05:00
parent 74dd455ae4
commit 5fada12165

View File

@ -1,4 +1,5 @@
//! Command line interface for the dust programming language. //! Command line interface for the dust programming language.
use clap::{Parser, Subcommand}; use clap::{Parser, Subcommand};
use rustyline::{ use rustyline::{
completion::FilenameCompleter, completion::FilenameCompleter,
@ -25,10 +26,11 @@ struct Args {
#[arg(short, long)] #[arg(short, long)]
input: Option<String>, input: Option<String>,
/// A path to file whose contents will be assigned to the "input" variable. /// File whose contents will be assigned to the "input" variable.
#[arg(short = 'p', long)] #[arg(short = 'p', long)]
input_path: Option<String>, input_path: Option<String>,
/// Command for alternate functionality besides running the source.
#[command(subcommand)] #[command(subcommand)]
cli_command: Option<CliCommand>, cli_command: Option<CliCommand>,