Describe all the options in the man page.
authorAdam Sampson <ats@offog.org>
Tue, 18 Jun 2013 13:35:08 +0000 (13:35 +0000)
committerAdam Sampson <ats@offog.org>
Tue, 18 Jun 2013 13:35:08 +0000 (13:35 +0000)
NEWS
rawdog.1

diff --git a/NEWS b/NEWS
index 67c138903e9250bcb88caa11c311fcf361c3d10c..07a798a13dcb55b5859f186a770895aca79f2bfd 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,7 +5,8 @@ version in Debian and Red Hat's previous stable releases, so it should
 be safe to assume on current systems, and means we can clean up some
 older compatibility cruft.
 
-Make some minor improvements to the documentation.
+Make the rawdog(1) man page describe all of rawdog's options, and make
+some other minor improvements to the documentation and help.
 
 - rawdog 2.14
 
index 72c1297573a7710e7990dafac42fc17b80f1288b..ae959fe3e291d6a8d67ad4c409da118bb889810d 100644 (file)
--- a/rawdog.1
+++ b/rawdog.1
@@ -18,11 +18,28 @@ latest articles it's seen.
 This program follows the usual GNU command line syntax, with long
 options starting with two dashes (`\-'). A summary of options is
 included below. For a complete description, see the README file.
+.SS General Options
+.TP
+.BI \-d \ DIR\fP, \ \-\-dir \ DIR
+Use
+.I DIR
+instead of the $HOME/.rawdog directory.
+.TP
+.B \-N, \-\-no\-locking
+Do not lock the state file.
+.TP
+.B \-v, \-\-verbose
+Print more detailed status information.
+.TP
+.B \-W, \-\-no\-lock\-wait
+Exit silently if the state file is locked.
+.SS Actions
+\fBrawdog\fP will perform these actions in the order given.
 .TP
 .BI \-a \ URL\fP, \ \-\-add \ URL
-Add a new feed to the config file, using Mark Pilgrim's "feedfinder"
-module to extract the location of the feed from
-.IR URL .
+Try to find a feed associated with
+.I URL
+and add it to the config file.
 .TP
 .BI \-c \ FILE\fP, \ \-\-config \ FILE
 Read
@@ -36,19 +53,29 @@ may be an absolute path or a path relative to your .rawdog directory.
 Note that $HOME/.rawdog/config will still be read first even if you
 specify this option.
 .TP
-.BI \-d \ DIR\fP, \ \-\-dir \ DIR
-Use
-.I DIR
-instead of the $HOME/.rawdog directory.
-.TP
-.BI \-f \ SOMEURL\fP, \ \-\-update\-feed \ SOMEURL
+.BI \-f \ URL\fP, \ \-\-update\-feed \ URL
 Update the feed pointed to by
-.I SOMEURL
+.I URL
 immediately, even if its period hasn't elapsed since it was last
 updated.
 .TP
+.B \-l, \ \-\-list
+List feeds known at the time of last update.
+.TP
+.BI \-r \ URL\fP, \ \-\-remove \ URL
+Remove feed
+.I URL
+from the config file.
+.TP
 .B \-t, \ \-\-show\-template
-Print the template currently in use to stdout.
+Print the
+.I template
+currently in use to stdout.
+.TP
+.B \-T, \ \-\-show\-itemtemplate
+Print the
+.I itemtemplate
+currently in use to stdout.
 .TP
 .B \-u, \-\-update
 Fetch data from the feeds and store it. This could take some time if
@@ -56,9 +83,31 @@ you've got lots of feeds.
 .TP
 .B \-w, \-\-write
 Write out the HTML output file.
+.SS Special Actions
+If one of these options is specified, \fBrawdog\fP will perform only
+that action, then exit.
 .TP
 .B \-\-help
-Provide a brief summary of all the options rawdog supports, and exit.
+Provide a brief summary of all the options rawdog supports.
+.TP
+.BI \-\-upgrade \ OLDDIR\ NEWDIR
+Import feed state from rawdog 1.x directory
+.I OLDDIR
+into rawdog 2.x directory
+.IR NEWDIR .
+.SH EXAMPLES
+\fBrawdog\fP is typically invoked from
+.BR cron (1).
+The following
+.BR crontab (5)
+entry would fetch data from feeds and write it to HTML once an hour,
+exiting if \fBrawdog\fP is already running:
+.PP
+.nf
+.RS
+0 * * * *  rawdog -Wvw
+.RE
+.fi
 .SH FILES
 $HOME/.rawdog/config
 .SH SEE ALSO