feat: add help and version flags to argument parser
This commit is contained in:
parent
69475d098c
commit
01be9152a7
5 changed files with 202 additions and 46 deletions
12
Cargo.toml
12
Cargo.toml
|
|
@ -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" }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue