diff options
| author | Yuval Adam <_@yuv.al> | 2018-07-03 18:30:36 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-07-03 18:30:36 +0300 |
| commit | 80cd9765b6a3083582329b1e7c63e861f7a81a45 (patch) | |
| tree | 35cc28e22ca9cbadbbad962db39175f49d4ff688 | |
| parent | 199ae9c893f3d9d8a0f98f5747971770ab11807d (diff) | |
File should be positional arg
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index eb18be6..408094a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,10 +13,9 @@ fn main() { .author("Yuval Adam") .about("A simple UPnP/DLNA casting player") .arg(Arg::with_name("file") - .short("f") - .long("file") .value_name("FILE") .help("Media file to stream") + .index(1) .required(true)) .get_matches(); //println!("\n{}", "Rustcast v0.1.0".color("blue").bold()); |
