[Surfraw-commits] [surfraw] 04/04: add -custom-search= as a command line option
Ian Beckwith
ianb at alioth.debian.org
Sun Oct 6 01:05:32 UTC 2013
This is an automated email from the git hooks/post-receive script.
ianb pushed a commit to branch 2.2.9_release_candidate
in repository surfraw.
commit c3552587055a176b069b1b3d58d3ae35b71de436
Author: Ian Beckwith <ianb at erislabs.net>
Date: Sun Oct 6 02:02:38 2013 +0100
add -custom-search= as a command line option
---
ChangeLog | 9 ++++++---
surfraw.IN | 6 ++++++
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1e04acc..5971487 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,9 +9,12 @@
to LWP, hence test breaks.
* discogs, openbsd: fixed tests.
* mdn, mysqldoc, pgdoc, phpdoc: added tests.
- * w3_custom_search: remove documentation for ixquick support.
- It still works(ish), but doesn't support enough features
- to support (eg) mysqldoc -v=.
+ * w3_custom_search:
+ + document in README.
+ + remove documentation for ixquick support.
+ It still works(ish), but doesn't support enough features
+ to support (eg) mysqldoc -v=.
+ + add -custom-search= commandline option.
2013-09-30 Ian Beckwith <ianb at erislabs.net>
diff --git a/surfraw.IN b/surfraw.IN
index 0475dbe..1434c75 100755
--- a/surfraw.IN
+++ b/surfraw.IN
@@ -273,6 +273,10 @@ Global options:
Environment: SURFRAW_bookmark_search_elvis
-browser=EXECUTABLE Set browser
Default: $SURFRAW_browser
+ -custom-search=PROVIDER Use PROVIDER for custom searches.
+ Supported: google, duckduckgo
+ Default: $SURFRAW_customsearch_provider
+ Environment: SURFRAW_customsearch_provider
-elvi List Surfraw mechanisms for conquering evil
-escape-url-args=yes|no Apply url escaping to arguments
Default: $SURFRAW_escape_url_args
@@ -354,6 +358,7 @@ w3_parse_option () {
-new=*) setoptyn SURFRAW_new_window $optarg ;;
-ns | -newscreen) setoptyn SURFRAW_new_screen yes ;;
-ns=* | -newscreen=*) setoptyn SURFRAW_new_screen $optarg ;;
+ -custom-search=*) setopt SURFRAW_customsearch_provider $optarg ;;
-o) setoptyn SURFRAW_dump yes ;;
-o=*) setoptyn SURFRAW_dump yes
setopt SURFRAW_dump_file $optarg ;;
@@ -491,6 +496,7 @@ w3_custom_search_usage() {
echo "Custom search:"
echo " To choose which search engine gets used for custom searches,"
echo " configure SURFRAW_customsearch_provider"
+ echo " or use -custom-search=PROVIDER"
echo " supported: google, duckduckgo"
echo " default: $SURFRAW_customsearch_provider"
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/surfraw/surfraw.git
More information about the Surfraw-commits
mailing list