Subversion Repositories svn.Prod repos

Rev

Rev 50 | Blame | Compare with Previous | Last modification | View Log | RSS feed

use std::env;
// TODO: implement the actual traversal
//       dit is alleen de argument parsing,

fn main() {
    let args: Vec<String> = env::args().collect();
    //println!("{:?}", args);

    let progname  = &args[0];
    if args.len() == 2 {
        let directory = &args[1];
        println!("{}", directory);
    }
    else {
        println!("ERROR: 1 argument expected for {}", progname );
    }
}