diff options
author | Teddy Wing | 2016-08-06 08:11:51 -0400 |
---|---|---|
committer | Teddy Wing | 2016-08-06 08:11:51 -0400 |
commit | 9481309d1d118afe97f161cba00625ac68ab2b62 (patch) | |
tree | 945d75ad99a27a64b07129b22a61b149b1a434b6 /src | |
parent | b9d53190baee46674f01b41f099dfebb85ae22fa (diff) | |
download | Passextract-9481309d1d118afe97f161cba00625ac68ab2b62.tar.bz2 |
parse_options: Add a short sentence of documentation
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
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: ") || |