use std::env;

pub fn get() -> (String, String, String) {
    let args : Vec<String> = env::args().collect();
    let mut action = "none".to_string();
    let mut path = "none".to_string(); 
    let mut param = "none".to_string();

    if args.len() > 1 {
        action = args[1].to_lowercase().to_string();
    }

    if args.len() > 2 {
        path = args[2].to_string();
    }

    if args.len() > 3 {
        param = args[3].to_string();
    }
    
    (action, path, param)
}