Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Limit the use of filters to a maximum of three #2

Open
JeanMertz opened this issue Apr 3, 2019 · 0 comments
Open

Limit the use of filters to a maximum of three #2

JeanMertz opened this issue Apr 3, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@JeanMertz
Copy link
Member

Currently, --filter (or -f) can be used to provide a comma-separated list of tags to filter the Pinboard posts on:

bulletin/src/main.rs

Lines 16 to 18 in e16f06e

/// Filter Pinboard posts based on coma-separated tags
#[structopt(short = "f", long = "filter")]
filter: Option<String>,

The Pinboard API mentions that a maximum of three tags can be supplied in the API request, so we should return a user-friendly error if more than three tags are provided in the filter option.

@JeanMertz JeanMertz added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Apr 3, 2019
@JeanMertz JeanMertz changed the title Limit the use of filters to a maximum of five Limit the use of filters to a maximum of three Apr 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Development

No branches or pull requests

1 participant