mirror of
https://github.com/YGGverse/pulsarss.git
synced 2026-03-31 17:15:29 +00:00
set index argument to false by default
This commit is contained in:
parent
d936ef78fa
commit
86b5d41aec
2 changed files with 5 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ cargo install pulsarss
|
||||||
## Launch
|
## Launch
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
pulsarss --source https://path/to/feed.rss
|
pulsarss --source https://path/to/feed.rss --index
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
@ -28,7 +28,7 @@ pulsarss --source https://path/to/feed.rss
|
||||||
* `source`, `s` - RSS feed source (required)
|
* `source`, `s` - RSS feed source (required)
|
||||||
* `target`, `t` - Destination directory (`public` by default)
|
* `target`, `t` - Destination directory (`public` by default)
|
||||||
* `update`, `u` - Update timeout in seconds (`60` by default)
|
* `update`, `u` - Update timeout in seconds (`60` by default)
|
||||||
* `index`, `i` - Generate `index.gmi` file (`true` by default)
|
* `index`, `i` - Generate `index.gmi` files (`false` by default)
|
||||||
* `limit`, `l` - Limit channel items (unlimited by default)
|
* `limit`, `l` - Limit channel items (unlimited by default)
|
||||||
* `output`, `o` - Print output (`dw` by default):
|
* `output`, `o` - Print output (`dw` by default):
|
||||||
* `d` - debug
|
* `d` - debug
|
||||||
|
|
@ -49,7 +49,7 @@ After=network.target
|
||||||
Type=simple
|
Type=simple
|
||||||
User=pulsarss
|
User=pulsarss
|
||||||
Group=pulsarss
|
Group=pulsarss
|
||||||
ExecStart=pulsarss -s https://path/to/feed.rss
|
ExecStart=pulsarss -is https://path/to/feed.rss
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ use clap::Parser;
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
#[command(version, about, long_about = None)]
|
#[command(version, about, long_about = None)]
|
||||||
pub struct Argument {
|
pub struct Argument {
|
||||||
/// Generate `index.gmi` file (`true` by default)
|
/// Generate `index.gmi` files (`false` by default)
|
||||||
#[arg(short, long, default_value_t = true)]
|
#[arg(short, long, default_value_t = false)]
|
||||||
pub index: bool,
|
pub index: bool,
|
||||||
|
|
||||||
/// Limit channel items (unlimited by default)
|
/// Limit channel items (unlimited by default)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue