aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2016-08-06 08:11:51 -0400
committerTeddy Wing2016-08-06 08:11:51 -0400
commit9481309d1d118afe97f161cba00625ac68ab2b62 (patch)
tree945d75ad99a27a64b07129b22a61b149b1a434b6 /src/main.rs
parentb9d53190baee46674f01b41f099dfebb85ae22fa (diff)
downloadPassextract-9481309d1d118afe97f161cba00625ac68ab2b62.tar.bz2
parse_options: Add a short sentence of documentation
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 6410ac5..ca58055 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -38,6 +38,8 @@ fn move_selection(term: &mut Terminal, selection: &mut Point, style: Cell, amoun
term.printline_with_cell(selection.x, selection.y, "->", style);
}
+/// Given a filename, either parse options from STDIN or send the file to
+/// `pass show` and parse the result as options.
fn parse_options(filename: &str) -> Vec<String> {
fn push_option(options: &mut Vec<String>, line: String) {
if line.starts_with("e: ") ||