Desktop: Resolve relative file paths passed to cli (#4844)

Desktop: Resolve relative file paths passed on the command line
This commit is contained in:
Timon authored and GitHub committed 2026-10-29 16:36:57 +00:00
1 parent d4ffee948f
commit d6fa17122f
1 file changed
+1 -1
+1 -1
View File
@@ -1,7 +1,7 @@
#[derive(clap::Parser)]
#[clap(name = "graphite", version)]
pub struct Cli {
#[arg(help = "Files to open on startup")]
#[arg(help = "Files to open on startup", value_parser = |path: &str| std::path::absolute(path))]
pub files: Vec<std::path::PathBuf>,
#[arg(long, action = clap::ArgAction::SetTrue, help = "Disable hardware accelerated UI rendering")]