feat: add help and version flags to argument parser

This commit is contained in:
LinuxBoy-96 2025-03-26 11:42:39 -04:00 committed by GitHub
parent 69475d098c
commit 01be9152a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 202 additions and 46 deletions

View file

@ -3,6 +3,9 @@ name = "cosmic-player"
version = "0.1.0"
edition = "2021"
[build-dependencies]
vergen = { version = "8", features = ["git", "gitcl"] }
[dependencies]
dirs = "5"
gstreamer-tag = "0.23"
@ -12,11 +15,15 @@ serde = { version = "1", features = ["serde_derive"] }
tempfile = "3"
tokio = "1"
url = "2"
pico-args = "0.5"
# CLI arguments
clap_lex = "0.7"
# Internationalization
icu_collator = "1.5"
icu_provider = { version = "1.5", features = ["sync"] }
i18n-embed = { version = "0.14", features = ["fluent-system", "desktop-requester"] }
i18n-embed = { version = "0.14", features = [
"fluent-system",
"desktop-requester",
] }
i18n-embed-fl = "0.7"
rust-embed = "8"
# Logging
@ -61,4 +68,3 @@ debug = true
# libcosmic = { path = "../libcosmic" }
# cosmic-config = { path = "../libcosmic/cosmic-config" }
# cosmic-theme = { path = "../libcosmic/cosmic-theme" }