| 67 | } |
| 68 | |
| 69 | function displayHelp() { |
| 70 | var help = [ |
| 71 | 'NAME', |
| 72 | ' csscomb — Lint and fix style errors in css files', |
| 73 | '', |
| 74 | 'SYNOPSIS', |
| 75 | ' csscomb [options] file.css', |
| 76 | ' cat file.css | csscomb [options] -', |
| 77 | '', |
| 78 | 'OPTIONS', |
| 79 | ' -c, --config [path]', |
| 80 | ' Path to configuration file.', |
| 81 | ' -d, --detect', |
| 82 | ' Run the tool in detect mode, returning detected options.', |
| 83 | ' -l, --lint', |
| 84 | ' Run the tool in linter mode, without modifying files.', |
| 85 | ' -h, --help', |
| 86 | ' Display help message.', |
| 87 | ' -v, --verbose', |
| 88 | ' Whether to print logging info.', |
| 89 | ' -t, --tty-mode', |
| 90 | ' Run the tool in TTY mode using external app (e.g. IDE).', |
| 91 | '' |
| 92 | ]; |
| 93 | process.stdout.write(help.join(os.EOL)); |
| 94 | } |
| 95 | |
| 96 | function detectConfig() { |
| 97 | const config = Comb.detectInFile(options.detect); |