lib/ayadn/descriptions.rb in ayadn-1.2.7 vs lib/ayadn/descriptions.rb in ayadn-1.2.8

- old
+ new

@@ -408,26 +408,64 @@ end def self.search <<-USAGE Show recents posts containing WORD(S). - Basic usage: + # Basic usage ayadn search screenshot iterm - ayadn -s screenshot iterm + ayadn search screenshot iterm Retrieves only 5 posts: - ayadn -s -c5 screenshot iterm + ayadn search -c5 screenshot iterm Shows index instead of post numbers: - ayadn -s -i screenshot iterm + ayadn search -i screenshot iterm Shows index and retrieves 30 posts: - ayadn -s -i -c30 screenshot iterm + ayadn search -i -c30 screenshot iterm + + # Advanced usage + + ## Messages + + Search for WORD(S) in messages, including PMs. + + You have to specify a channel id (or an alias). + + Usage: + + ayadn search --messages 33642 ipad movies + + ayadn search --messages my_alias ipad movies + + ## Users + + Search for App.net users by searching WORD(S) in their bio/description. + + Usage: + + ayadn search --users anime + + ## Channels + + Search for App.net channels by searching WORD(S) in their description. + + Usage: + + ayadn search --channels movies + + ## Annotations + + Search for posts containing a specific App.net annotation. + + Usage: + + ayadn search --annotations net.app.core.crosspost \n\n USAGE end def self.settings <<-USAGE