diff options
| author | Yuval Adam <_@yuv.al> | 2018-07-07 22:06:53 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-07-07 22:06:53 +0300 |
| commit | cd4e5a5330b9ccc75c4cb91c2e91bfd16efd36cf (patch) | |
| tree | 8d8361da7251aecaa7a43d053704d8dc5816c8f9 /src | |
| parent | 9617607c8bb172475d798dc8b55d891d54e61a4c (diff) | |
Use cargo vars for app metadata
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 3db18f7..d05f302 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,11 +7,10 @@ use std::path::Path; use std::process; mod cli; -mod upnp; fn main() { - let app = App::new("Rustcast") - .version("0.1") + let app = App::new(env!("CARGO_PKG_NAME")) + .version(env!("CARGO_PKG_VERSION")) .author("Yuval Adam") .about("A simple UPnP/DLNA casting player") .arg(Arg::with_name("FILE") |
