mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 06:38:03 +08:00
* Open document from cli and add some files to .gitignore * Revert .gitignore * Revert .gitignore * Implement cli properly * Add ui-accelerated-painting option * Format code * Revert changes in .vscode folder * Don't use global variables for cli * Apply suggested changes * Make ready for merge * Improve names * remove comment --------- Co-authored-by: Timon <me@timon.zip>
10 lines
304 B
Rust
10 lines
304 B
Rust
#[derive(clap::Parser)]
|
|
#[clap(name = "graphite-editor", version)]
|
|
pub struct Cli {
|
|
#[arg(help = "Files to open on startup")]
|
|
pub files: Vec<std::path::PathBuf>,
|
|
|
|
#[arg(long, action = clap::ArgAction::SetTrue, help = "Disable hardware accelerated UI rendering")]
|
|
pub disable_ui_acceleration: bool,
|
|
}
|