CLI¶
The pssparser package provides a parser-focused command-line interface.
Basic usage¶
Parse and link one or more PSS source files:
pssparser file1.pss file2.pss
Common options¶
--syntax-onlyparses without performing linking / symbol resolution--jsonemits diagnostics as JSON--dump-ast OUTwrites a JSON dump of the linked AST--quietsuppresses normal diagnostic output
Examples¶
Syntax-only parse:
pssparser --syntax-only model.pss
Emit diagnostics as JSON:
pssparser --json model.pss
Dump the linked AST:
pssparser --dump-ast ast.json model.pss
Checker flags¶
The following flags control the checker plug-in system. See Checker Plug-in Guide for a full explanation of the plug-in architecture.
Query-and-exit flags¶
These flags do not require source files.
--list-checkersPrint a table of all registered checkers — name, description, and declared marker IDs — then exit with code 0.
pssparser --list-checkers--list-markersPrint a table of every declared marker ID across all registered checkers (including the built-in
core), then exit with code 0. Columns areID,SEV,CHECKER, andSUMMARY.pssparser --list-markers--describe IDPrint the full definition (summary, severity, detail, owning checker) for the marker with the given ID, then exit with code 0. Exits with code 2 and an error message if the ID is not found.
pssparser --describe PSS001
Checker selection flags¶
--checker NAMERun only the named checker. May be repeated to select multiple checkers.
NAMEmust match a registered entry-point name or a checker previously loaded with--load-checker. Specifying an unknown name produces an error and exits with code 2.pssparser --checker naming-convention model.pss
--no-checker NAMEExclude the named checker from the active set. May be repeated. Silently ignored when the name is not in the registry, or when
--checkeris also specified (explicit selection takes precedence).pssparser --no-checker deprecated-syntax model.pss
--load-checker MODULE:CLASSDynamically import
CLASSfromMODULEand add it to the active checker set. No package installation required. May be repeated. The loaded checker participates in--checker/--no-checkerfiltering using itsnameattribute.pssparser --load-checker myproject.rules:StyleChecker model.pss