From 80cd9765b6a3083582329b1e7c63e861f7a81a45 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Tue, 3 Jul 2018 18:30:36 +0300 Subject: File should be positional arg --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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()); -- cgit v1.3.1