Desktop: Add simple cli interface (#3059)

* 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>
This commit is contained in:
Mateo
2025-10-13 21:09:40 +00:00
committed by GitHub
co-authored by Timon
parent e366e4d64e
commit 497758c273
10 changed files with 71 additions and 18 deletions
+9
View File
@@ -0,0 +1,9 @@
#[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,
}