Subversion Repositories svn.Prod repos

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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