Permalink
Browse files

replaced by --url-only to --with-url

  • Loading branch information...
1 parent 3878d80 commit b4597833893baf125a9afebd7f33886ed5f4dc73 @stepler stepler committed Jul 9, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −0 argparser.py
  2. +2 −2 geeknote.py
  3. +1 −1 out.py
View
@@ -78,6 +78,7 @@
"--count": {"help": "How many notes show in the result list.", "type": int},
},
"flags": {
+ "--with-url": {"help": "Add direct url of each note in results to Evernote web-version.", "value": True, "default": False},
"--exact-entry": {"help": "Search for exact entry of the request.", "value": True, "default": False},
"--content-search": {"help": "Search by content, not by title.", "value": True, "default": False},
}
View
@@ -648,7 +648,7 @@ def _searchNote(self, note):
return note
- def find(self, search=None, tags=None, notebooks=None, date=None, exact_entry=None, content_search=None, url_only=None, count=None, ):
+ def find(self, search=None, tags=None, notebooks=None, date=None, exact_entry=None, content_search=None, with_url=None, count=None, ):
request = self._createSearchRequest(search, tags, notebooks, date, exact_entry, content_search)
@@ -669,7 +669,7 @@ def find(self, search=None, tags=None, notebooks=None, date=None, exact_entry=No
# print result
self.getStorage().setSearch(result)
- out.SearchResult(result.notes, request, showUrl=url_only)
+ out.SearchResult(result.notes, request, showUrl=with_url)
def _createSearchRequest(self, search=None, tags=None, notebooks=None, date=None, exact_entry=None, content_search=None):
View
2 out.py
@@ -193,7 +193,7 @@ def printList(listItems, title="", showSelector=False, showByStep=20, showUrl=Fa
#print title
item.title if hasattr(item, 'title') else item.name,
#print noteUrl
- " "+(config.NOTE_URL % item.guid) if showUrl else '',))
+ " "+(">>> "+config.NOTE_URL % item.guid) if showUrl else '',))
if key%showByStep == 0 and key < total:
printLine("-- More --", "\r")

0 comments on commit b459783

Please sign in to comment.