33 lines
871 B
Rust
33 lines
871 B
Rust
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
use clap::{Parser, Subcommand};
|
|
|
|
#[derive(Parser, Debug)]
|
|
#[command(name = "molotov", author, version, about = "Native Roblox Runtime for Linux", long_about = None)]
|
|
pub struct Cli {
|
|
#[command(subcommand)]
|
|
pub command: Option<Commands>,
|
|
}
|
|
|
|
#[derive(Subcommand, Debug)]
|
|
pub enum Commands {
|
|
/// Launch Roblox with the active profile
|
|
Launch {
|
|
#[arg(short, long)]
|
|
place_id: Option<u64>,
|
|
#[arg(long)]
|
|
safe_mode: bool,
|
|
},
|
|
/// Check for and download the latest Roblox version
|
|
Update,
|
|
/// Apply or inspect FastFlag settings
|
|
Fflags {
|
|
#[arg(short, long)]
|
|
profile: Option<String>,
|
|
#[arg(short, long)]
|
|
list: bool,
|
|
},
|
|
/// Clean old versions and cached files
|
|
Clean,
|
|
/// Show system diagnostics and status
|
|
Diagnostics,
|
|
}
|