node-red / nrlint

Node-RED Flow Linter
Apache License 2.0
36 stars 15 forks source link

Support --version option #25

Closed k-toumura closed 2 years ago

k-toumura commented 2 years ago

Proposed changes

(Fixes #23) Support --version option.

% node bin/nrlint.js
Error: no input file
Lint tool for Node-RED flows (v1.0.2-git)
    Usage: nrlint [-h] [-c configfile] flows.json

    Options:
      -h, --help                   Show this help
      -c, --config configfile      Configuration file to use, otherwise use .nrlintrc.js
      -f, --format outputFormat    Output format: 'default,json'
      --debug                      Output debugging information
      --init                       Generate a default configuration
      --version                    Output version information and exit

% node bin/nrlint.js --version
1.0.2-git

Checklist

linux-foundation-easycla[bot] commented 2 years ago

CLA Signed

The committers are authorized under a signed CLA.