Clean up
This commit is contained in:
parent
74dd455ae4
commit
5fada12165
@ -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>,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user