diff options
| author | pml68 <contact@pml68.dev> | 2025-03-23 01:43:57 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-03-23 01:43:57 +0100 |
| commit | e6aa02be6bec9c0d867b129668ce99d4af898752 (patch) | |
| tree | 66af8037daa353459fd8d03bfdf717c63d8debd4 /src/main.rs | |
| parent | feat: impl `Value` for `LineHeight` and `ContentFit` (all done) (diff) | |
| download | iced-builder-e6aa02be6bec9c0d867b129668ce99d4af898752.tar.gz | |
feat: add PKGBUILD
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index b645e80..336378e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,10 +27,9 @@ use tokio::runtime; use types::{Action, DesignerPane, ElementName, Message, Project}; fn main() -> Result<(), Box<dyn std::error::Error>> { - let mut args = std::env::args(); - let _ = args.next(); - - let version = args.next().is_some_and(|s| s == "--version" || s == "-V"); + let version = std::env::args() + .nth(1) + .is_some_and(|s| s == "--version" || s == "-V"); if version { println!("iced-builder {}", environment::formatted_version()); |
