forked from trinitrix/core
1
0
Fork 0
core/src/cli.rs

24 lines
641 B
Rust

use std::path::PathBuf;
use clap::{Parser, Subcommand};
// TODO: The description could be better
/// A terminal client for the matrix chat protocol
#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
pub struct Args {
#[command(subcommand)]
/// The subcommand to execute, default is start
pub subcommand: Option<Command>,
#[clap(value_parser, long, short)]
/// Path to the Lua config file, executed instead of the normal one
pub lua_config_file: Option<PathBuf>,
}
#[derive(Subcommand, Debug)]
pub enum Command {
#[clap(value_parser)]
/// Starts the main TUI client
Start {},
}