Do no panic when passed empty string as argument
@@ -25,6 +25,9 @@ pub fn parse(target_list: &TargetList) -> Args {
{
let mut args = env::args().skip(1);
while let Some(arg) = args.next() {
+ if arg.len() == 0 {
+ continue;
+ }
if let ("+", ch) = arg.split_at(1) {
channel = Some(ch.to_string());
} else if arg == "--target" {
