diff --git a/src/autoload.rs b/src/autoload.rs index 2f816fe..792dae6 100644 --- a/src/autoload.rs +++ b/src/autoload.rs @@ -177,7 +177,7 @@ pub fn run(subcommand: &str, args: &mut Vec<&str>, shell: &str) { &mut al_modules); if subcommand == "refurbish" { - + for al_module in al_modules.iter() { output(format!("module load {}\n", al_module.name)); } @@ -216,7 +216,7 @@ pub fn run(subcommand: &str, args: &mut Vec<&str>, shell: &str) { } } - if count != 0 && shell != "noshell" { + if count != 0 && shell != "noshell" { echo("", shell); echo(" Autoloaded modules managed by RSModules:", shell); echo("", shell); diff --git a/src/main.rs b/src/main.rs index 88832ff..3fe4df1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -198,11 +198,13 @@ fn usage(in_eval: bool) { println_stderr!(""); if in_eval { - error_msg = " Usage: module \ - [module name]"; + error_msg = " Usage: module \ + [module \ + name]"; } else { error_msg = " Usage: rsmodules \ - [module name]"; + [module \ + name]"; } println_stderr!("{}", &error_msg); diff --git a/src/rsmodules.rs b/src/rsmodules.rs index ab5ff16..a1b4acc 100644 --- a/src/rsmodules.rs +++ b/src/rsmodules.rs @@ -677,7 +677,7 @@ fn purge(rsmod: &mut Rsmodule) { fn refurbish(rsmod: &mut Rsmodule) { purge(rsmod); - let mut args: Vec<&str> = Vec::new();//rsmod.arg.split_whitespace().collect(); + let mut args: Vec<&str> = Vec::new(); //rsmod.arg.split_whitespace().collect(); //let mut subcommand = args.remove(0); //args.remove(0); let subcommand = "refurbish"; @@ -780,7 +780,7 @@ fn autoload(rsmod: &mut Rsmodule) { return; } -// TODO: allow only for append, prepend, remove, list + // TODO: allow only for append, prepend, remove, list let subcommand = args.remove(0); autoload::run(subcommand, &mut args, rsmod.shell);