Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No --reporter flag available #163

Closed
greggles opened this issue Oct 29, 2021 · 2 comments
Closed

No --reporter flag available #163

greggles opened this issue Oct 29, 2021 · 2 comments

Comments

@greggles
Copy link
Contributor

Hello,

I'm having trouble using the --reporter flag. here's my version, config file, and the command failing when I try to specify a reporter and succeeding if I leave off the reporter. Any tips? Thanks!

greggles@gregs-mbp ~/c/a/a11y (main) > pa11y-ci -V
2.4.2
greggles@gregs-mbp ~/c/a/a11y (main)> cat .pa11yci
{
    "defaults": {
        "reporters": [
            "cli",
            ["json", { "fileName": "./results.json" }]
        ]
    },
    "urls": [
        "https://pa11y.org/"
    ]
}
greggles@gregs-mbp ~/c/a/a11y (main)> pa11y-ci --reporter=json
error: unknown option `--reporter'
greggles@gregs-mbp ~/c/a/a11y (main) [1]> pa11y-ci
Running Pa11y on 1 URLs:
 > https://pa11y.org/ - 0 errors

✔ 1/1 URLs passed
greggles@gregs-mbp ~/c/a/a11y (main)>
@joeyciechanowicz
Copy link
Member

Apologies, the --reporters flag is there, but not on the currently released version of pa11y-ci. If you grab the source and run it directly, then it should work no problem.

@greggles
Copy link
Contributor Author

greggles commented Nov 2, 2021

Got it, OK. And I realized in the older versions there is a -j option which gets me what I need so I'll close this.

For what it's worth, I do think it could be good to create a new version or use a branching strategy that lets the README on github match the latest stable version.

@greggles greggles closed this as completed Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants