update flags to be more easily usable
This commit is contained in:
+8
-8
@@ -56,9 +56,9 @@ command-specific flags that are not universally recognized.
|
|||||||
|
|
||||||
## ADD FLAGS
|
## ADD FLAGS
|
||||||
|
|
||||||
*-t* _TYPE_, *--type* _TYPE_
|
*-w*, *--watch*
|
||||||
Select which type a subscription is. Can be *g* for a Gemini feed; *a* for
|
Watch a page for changes instead of adding as a feed. Useful for gophermaps,
|
||||||
Atom, RSS, & JSON; or *c* to watch the page for changes. Defaults to *g*.
|
or gemini/http resources with no parseable feed.
|
||||||
|
|
||||||
# ENVIRONMENT VARIABLES
|
# ENVIRONMENT VARIABLES
|
||||||
|
|
||||||
@@ -96,19 +96,19 @@ Within the data directory, the following files are used:
|
|||||||
|
|
||||||
# EXAMPLES
|
# EXAMPLES
|
||||||
|
|
||||||
This will add a new Gemini feed subscripton:
|
This will add a new feed subscripton:
|
||||||
```
|
```
|
||||||
comitium add gemini://nytpu.com/gemlog/
|
comitium add gemini://nytpu.com/gemlog/
|
||||||
```
|
```
|
||||||
|
|
||||||
This will add a new atom subscription:
|
This will add a new subscription over http:
|
||||||
```
|
```
|
||||||
comitium add -t a gemini://nytpu.com/flightlog/atom.xml
|
comitium add -t a https://www.nytpu.com/files/atom.xml
|
||||||
```
|
```
|
||||||
|
|
||||||
This will add a new subscription to watch for changes:
|
This will add a new subscription to watch for changes:
|
||||||
```
|
```
|
||||||
comitium add --type a gemini://nytpu.com/photos/by-date.gmi nytpu's photos
|
comitium add --watch gemini://nytpu.com/photos/by-date.gmi nytpu's photos
|
||||||
```
|
```
|
||||||
Note that when watching a page for changes, you should manually add a title,
|
Note that when watching a page for changes, you should manually add a title,
|
||||||
otherwise the URL will be used.
|
otherwise the URL will be used.
|
||||||
@@ -127,7 +127,7 @@ For more information, see the README at <https://git.nytpu.com/comitium/about/>
|
|||||||
or in your local copy of the repository.
|
or in your local copy of the repository.
|
||||||
|
|
||||||
For a tutorial, see the docs at <https://git.nytpu.com/comitium/tree/doc/> or in
|
For a tutorial, see the docs at <https://git.nytpu.com/comitium/tree/doc/> or in
|
||||||
your local repository.
|
*docs/* in your local repository.
|
||||||
|
|
||||||
# AUTHOR
|
# AUTHOR
|
||||||
|
|
||||||
|
|||||||
@@ -39,11 +39,9 @@ var commands = map[string]*flag.FlagSet{
|
|||||||
// set up various flags for each individual command
|
// set up various flags for each individual command
|
||||||
var (
|
var (
|
||||||
// add
|
// add
|
||||||
addTypeFlag = commands["add"].StringP(
|
addTypeFlag = commands["add"].BoolP(
|
||||||
"type", "t", // long and shorthand flag
|
"watch", "w", // long and shorthand flag
|
||||||
"g", // default
|
false, // default
|
||||||
`Select which type a subscription is. Can be "g" for a
|
`Watch a page instead of adding it as a feed.`,
|
||||||
Gemini feed; "a" for Atom, RSS, & JSON; or "c" to watch
|
|
||||||
the page for changes.`,
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user