summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vtcol.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/vtcol.rs b/src/vtcol.rs
index de66928..8e36d0f 100644
--- a/src/vtcol.rs
+++ b/src/vtcol.rs
@@ -184,13 +184,17 @@ impl<'a> Job {
Job::usage(&this, opts);
panic!("no file name specified, aborting")
},
- Some (fname) => Scheme::Custom(Some(fname.clone()))
+ Some (fname) =>
+ if fname == "-" { Job::scheme_from_stdin() }
+ else { Scheme::Custom(Some(fname.clone())) }
}
} else {
match matches.opt_str("s")
{
- Some (name) => Job::pick_scheme(&name),
- None => Job::scheme_from_stdin()
+ None => Job::scheme_from_stdin(),
+ Some (name) =>
+ if name == "-" { Job::scheme_from_stdin() }
+ else { Job::pick_scheme(&name) }
}
}; /* [let scheme] */