sloane 1.7 → 1.7.1
raw patch · 5 files changed
+33/−29 lines, 5 files
Files
- CHANGELOG.md +4/−0
- README.md +13/−13
- sloane.1 +13/−13
- sloane.cabal +1/−1
- sloane.hs +2/−2
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Changelog +## sloane 1.7.1 - April 30, 2014++* Clean up the README / man page.+ ## sloane 1.7 - April 20, 2014 * Enable filtering against a local cache of sequences.
README.md view
@@ -1,6 +1,6 @@ ----title: SLOANE(1) Sloane User Manual | Version 1.7-date: April 20, 2014+title: SLOANE(1) Sloane User Manual | Version 1.7.1+date: April 30, 2014 --- # NAME@@ -34,7 +34,7 @@ sloane <FILE returns the subset of the sequences in *FILE* that are in the OEIS. To-also lookup the names of those sequences in the OEIS one could, for+also look-up the names of those sequences in the OEIS one could, for instance, run sloane <FILE | xargs -L1 --verbose sloane@@ -44,20 +44,20 @@ # OPTIONS --k --keys=KEYS-: Keys of fields to print (default: SN)- -a --all : Print all fields --u --url-: Print urls of found entries (but nothing else)+-k --keys=KEYS+: Keys of fields to print (default: SN) +-n --limit=INT+: Fetch at most this many entries (default: 5)+ --update : Update the local sequence cache --n --limit=INT-: Fetch at most this many entries (default: 5)+-u --url+: Print URLs of found entries (but nothing else) -? --help : Display a short help message@@ -87,13 +87,13 @@ sloane -n3 "(2+2)-free posets" -To view the full entries of these 3 results in a browser (e.g., firefox)+To view the full entries of these 3 results in a browser (e.g., Firefox) one can use the url option: firefox `sloane --url -n3 "(2+2)-free posets"` -In the final example we use sloane to use the local cache to filter out-sequences from the standard input that are in the OEIS:+In the final example the local cache is used to filter out sequences+from the standard input that are in the OEIS: sloane <<END 1,2,3,6,11,23,47,106,235 # Comma separated integers
sloane.1 view
@@ -1,4 +1,4 @@-.TH "SLOANE" "1" "March 18, 2014" "Sloane User Manual" "Version 1.7"+.TH "SLOANE" "1" "April 30, 2014" "Sloane User Manual" "Version 1.7.1" .SH NAME .PP sloane \- a command line interface to Sloane\[aq]s On\-Line Encyclopedia@@ -42,7 +42,7 @@ .PP returns the subset of the sequences in \f[I]FILE\f[] that are in the OEIS.-To also lookup the names of those sequences in the OEIS one could, for+To also look\-up the names of those sequences in the OEIS one could, for instance, run .IP .nf@@ -55,18 +55,18 @@ If this is unwanted, pipe the output through cat. .SH OPTIONS .TP-.B \-k \-\-keys=KEYS-Keys of fields to print (default: SN)+.B \-a \-\-all+Print all fields .RS .RE .TP-.B \-a \-\-all-Print all fields+.B \-k \-\-keys=KEYS+Keys of fields to print (default: SN) .RS .RE .TP-.B \-u \-\-url-Print urls of found entries (but nothing else)+.B \-n \-\-limit=INT+Fetch at most this many entries (default: 5) .RS .RE .TP@@ -75,8 +75,8 @@ .RS .RE .TP-.B \-n \-\-limit=INT-Fetch at most this many entries (default: 5)+.B \-u \-\-url+Print URLs of found entries (but nothing else) .RS .RE .TP@@ -129,7 +129,7 @@ \f[] .fi .PP-To view the full entries of these 3 results in a browser (e.g., firefox)+To view the full entries of these 3 results in a browser (e.g., Firefox) one can use the url option: .IP .nf@@ -138,8 +138,8 @@ \f[] .fi .PP-In the final example we use sloane to use the local cache to filter out-sequences from the standard input that are in the OEIS:+In the final example the local cache is used to filter out sequences+from the standard input that are in the OEIS: .IP .nf \f[C]
sloane.cabal view
@@ -1,5 +1,5 @@ Name: sloane-Version: 1.7+Version: 1.7.1 Synopsis: A command line interface to Sloane's On-Line Encyclopedia of Integer Sequences Description: A command line interface to Sloane's On-Line Encyclopedia of Integer Sequences. For usage see <http://github.com/akc/sloane>.
sloane.hs view
@@ -64,10 +64,10 @@ , keys = "SN" &= typ "KEYS" &= help "Keys of fields to print (default: SN)" , limit = 5 &= name "n" &= help "Fetch at most this many entries (default: 5)" , update = False &= help "Update the local sequence cache"- , url = False &= name "u" &= help "Print urls of found entries"+ , url = False &= name "u" &= help "Print URLs of found entries" , terms = def &= args &= typ "SEARCH-TERMS" }- &= versionArg [summary "sloane 1.7"]+ &= versionArg [summary "sloane 1.7.1"] &= summary "Search Sloane's On-Line Encyclopedia of Integer Sequences" select :: Keys -> OEISEntries -> OEISEntries