1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use clap::Parser;
#[derive(Parser)]
#[clap(
author = "UltiRequiem",
version = "0.1.0",
about = "Easily run React snippets"
)]
pub struct Args {
pub file: String,
#[clap(short, long, default_value_t = 8080)]
pub port: u16,
/// If passed your component will not be open on the browser automatically
#[clap(short, long)]
pub simple: bool,
}