CHECKSELECTORSYNTAX

Description

Checks the syntax of a selector.

Usage

cm checkselectorsyntax | css --file=<selector_file>

(Checks the selector file syntax.)

cat <selector_file> | cm checkselectorsyntax | css -

(Unix. Checks selector file from standard input.)

type <selector_file> | cm checkselectorsyntax | css -

(Windows. Checks selector file from standard input.)

Options

Option / ArgumentDescription
--fileThe file to read a selector from.

Help

Remarks

This command reads a selector on either a file or standard input, and checks it for valid syntax. If the syntax check fails, the reason is printed on standard output.

Examples

cm checkselectorsyntax --file=myselector.txt

(Checks the syntax of 'myselector.txt' file.)

cat myselector.txt | cm checkselectorsyntax

(Checks the syntax of 'myselector.txt' from standard input.)