From f2917abb3b3a0cbe264791031f2d1acb52eaa5c8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 21 Jul 2019 16:39:36 +0200 Subject: [PATCH] =?UTF-8?q?Added=20documentation=20for=20=E2=80=9Csimple?= =?UTF-8?q?=E2=80=9D=20export.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- remwharead.1.adoc | 10 +++++++--- src/parse_options.cpp | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/remwharead.1.adoc b/remwharead.1.adoc index 92ceafc..527d67e 100644 --- a/remwharead.1.adoc +++ b/remwharead.1.adoc @@ -15,7 +15,7 @@ remwharead - Saves URIs of things you want to remember in a database *remwharead* [*-t* _tags_] [*-N*] _URI_ -*remwharead* *-e* _format_ [*-f* _file_] [*-T* _start_,_end_] [[*-s*|*-S*] _expression_] +*remwharead* *-e* [_format_] [*-f* _file_] [*-T* _start_,_end_] [[*-s*|*-S*] _expression_] == DESCRIPTION @@ -35,8 +35,8 @@ https://archive.org/[Internet Archive]. Add tags to _URI_, delimited by commas. *-e* _format_, *--export* _format_:: -Export to _format_. Possible values are _csv_, _asciidoc_ and _bookmarks_. See -_FORMATS_. +Export to _format_. Possible values are _csv_, _asciidoc_, _bookmarks_ or +_simple_ (default). See _FORMATS_. *-f* _file_, *--file* _file_:: Save output to _file_. Default is stdout. @@ -120,6 +120,10 @@ https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie- Bookmark file format] is a format for exporting and importing bookmarks that is understood by most browsers. +=== simple + +Simple, human readable, list. Outputs date, title and URI. + == SEARCH EXPRESSIONS A search expression is either a single term, or several terms separated by _AND_ diff --git a/src/parse_options.cpp b/src/parse_options.cpp index 7cc7602..60b0683 100644 --- a/src/parse_options.cpp +++ b/src/parse_options.cpp @@ -70,7 +70,7 @@ const options parse_options(const int argc, const char *argv[]) { cout << "Usage: " << argv[0] << " [-t tags] [-N] URI\n" << " " << argv[0] - << " -e format [-f file] [-T start,end] " + << " -e [format] [-f file] [-T start,end] " << "[[-s|-S] expression]\n"; cout << op; return options(0);