pub fn interpret_arguments(&self, args: &mut Args) {
        if args.len() > 0 {
            let command = args.next().unwrap().to_lowercase();
            if command == "compile" {
                args.for_each(|e| {
                    if e == "all" {
                        self.compile_all();
                    } else {
                        self.compile(&e);
                    }
                });
            } else if command == "publish" {
                self.compile_all();
                self.publish();
            }
        }
    }
// Parses out commands and runs the corresponding methods
Parses out commands and runs the corresponding methods
Parses out commands and runs the corresponding methods
pub fn interpret_arguments(&self, args: &mut Args) {
        if args.len() > 0 {
            let command = args.next().unwrap().to_lowercase();
            if command == "compile" {
                args.for_each(|e| {
                    if e == "all" {
                        self.compile_all();
                    } else {
                        self.compile(&e);
                    }
                });
            } else if command == "publish" {
                self.compile_all();
                self.publish();
            }
        }
    }
pub fn interpret_arguments ( & self , args : & mut Args ) { if args . len ( ) > 0 { let command = args . next ( ) . unwrap ( ) . to_lowercase ( ) ; if command == " " { args . for_each ( | e | { if e == " " { self . compile_all ( ) ; } else { self . compile ( & e ) ; } } ) ; } else if command == " " { self . compile_all ( ) ; self . publish ( ) ; } } }
Parses out commands and runs the corresponding methods
Parses out commands and runs the corresponding methods
&self
args
&mut Args