Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Guibi1/CME. A simple editor for small commit messages on the terminal
Something went wrong. Try again.
12345678910111213141516171819202122232425use clap::Parser;
#[derive(Parser, Debug)]#[command(version, about, long_about = None)]pub struct Args { /// The file to open pub file: String,
/// Text area height #[arg(long, default_value_t = 5, value_parser = clap::value_parser!(u16).range(1..))] pub height: u16,
/// Enables fullscreen mode (ignores height) #[arg(long, default_value_t = false)] pub fullscreen: bool,
/// Show a title bar #[arg(long)] pub title: Option<String>,
/// Hides the keybinds bar #[arg(long, default_value_t = false)] pub no_keybinds: bool,}