A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

Validator.nu validator-tester.py: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
Line 9: Line 9:
Specifies the name of the database file. Defaults to <code>db.json</code> in the current working directory.
Specifies the name of the database file. Defaults to <code>db.json</code> in the current working directory.


===--service=''URL''===
===--service=''URI''===


Specifies the root URL of the service to be tested. Defaults to <code>http://html5.validator.nu/</code>.
Specifies the root URI of the service to be tested. Defaults to <code>http://html5.validator.nu/</code>.


==''command''==
==''command''==

Revision as of 08:51, 5 June 2008

python validator-tester.py config command command-arguments

config

The following configuration parameters are available:

--db=filename

Specifies the name of the database file. Defaults to db.json in the current working directory.

--service=URI

Specifies the root URI of the service to be tested. Defaults to http://html5.validator.nu/.

command

dumpref

Dumps the reference data for a URI from the database into a JSON file.

Takes two arguments: URI and file name.

dumpuri

Dumps the result data for a URI as reported by the remote service into a JSON file.

Takes two arguments: URI and file name.

adduri

deluri

checkuri

checkall

mergedb

command-arguments

The arguments to the command as documented for each command.