From 9481309d1d118afe97f161cba00625ac68ab2b62 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 6 Aug 2016 08:11:51 -0400 Subject: parse_options: Add a short sentence of documentation --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 { fn push_option(options: &mut Vec, line: String) { if line.starts_with("e: ") || -- cgit v1.2.3