-
Notifications
You must be signed in to change notification settings - Fork 253
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
Sync JSON config file with command line options #58
Comments
I am willing to submit a PR. |
Yes, I think this is a great idea, and would be more than willing to merge in. As to which command-line args we allow, do you think a flat list somewhere would make sense? Just to prevent use of |
I'm not sure I understand the questions fully, so please forgive me if I'm talking about something seemingly random. The command line flags for pa11y can be listed out via var pa11y = require('pa11y');
pa11y.sniff(options, callback); One should be able to save something resembling pa11y --config $filename $site For PhantomJS arguments, I think there may be two ways to pass the options dynamically (to avoid having to keep the supported options up to date):
I'm not sure if either of the above are particularly elegant, but they might work. |
The last snippet in my comment above should actually read:
|
Any new thoughts on what's above? |
Hi @whymarrh, sorry – this has been marked as unread, I've had no free time to work on pa11y and I've let the issues get ahead of me! Based on your longer reply, I think I was getting the wrong end of the stick before, and this would definitely be really useful. Is it something you're keen to work on? |
@rowanmanning no worries! I'm definitely still willing to submit a PR for this. |
Just a note, this has made it into a development version of pa11y, support for configuring any PhantomJS flag (not necessarily through a config file, but it works anyway). There's no ETA yet but I'll keep you posted. |
@whymarrh can this issue close based on the new 2.0 API (where you can configure everything from the JSON config if you need to)? |
Sure can! |
Idea: adding the ability to configure all the same options in the JSON config (
.pa11yrc
) that are available as command line flags.I'm not 100% sure where I would draw the line on this as not all of the command line flags are worthy (e.g. help and version), but I think the others might be useful.
Thoughts? With ideas like #50/#51 and #53, maybe the JSON config is underutilised.
The text was updated successfully, but these errors were encountered: