summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: eb18be675fdb50713a47e38126603c3d073b69e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
extern crate clap;
extern crate colored;
extern crate rustyline;

use colored::*;
use clap::{Arg, App, SubCommand};
use rustyline::error::ReadlineError;
use rustyline::Editor;

fn main() {
    let matches = App::new("Rustcast")
        .version("0.1")
        .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")
            .required(true))
        .get_matches();
    //println!("\n{}", "Rustcast v0.1.0".color("blue").bold());
    //println!("\n  usage: rustcast <media.file>\n");
}