This commit is contained in:
Quaternions 2024-10-03 21:46:24 -07:00
parent 886a37ab41
commit 2814e88011

View File

@ -3,21 +3,21 @@ use std::path::PathBuf;
use clap::{Args,Parser,Subcommand};
#[derive(Parser)]
#[command(author, version, about, long_about = None)]
#[command(propagate_version = true)]
struct Cli {
#[command(author,version,about,long_about=None)]
#[command(propagate_version=true)]
struct Cli{
#[command(subcommand)]
command: Commands,
command:Commands,
}
#[derive(Subcommand)]
enum Commands {
enum Commands{
RunScript(RunScriptSubcommand),
}
#[derive(Args)]
struct RunScriptSubcommand {
#[arg(long)]
struct RunScriptSubcommand{
#[arg()]
input_file:PathBuf,
}