Subversion Repositories svn.Prod repos

Rev

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

Rev Author Line No. Line
50 - 1
use std::env;
52 - 2
// TODO: implement the actual traversal
3
//       dit is alleen de argument parsing,
50 - 4
 
5
fn main() {
6
    let args: Vec<String> = env::args().collect();
7
    //println!("{:?}", args);
8
 
9
    let progname  = &args[0];
10
    if args.len() == 2 {
11
        let directory = &args[1];
12
        println!("{}", directory);
13
    }
14
    else {
15
        println!("ERROR: 1 argument expected for {}", progname );
16
    }
17
}