brenolf / polyjuice

A utility to convert JSHint and JSCS files into ESLint files and vice-versa
MIT License
275 stars 15 forks source link

Add support for --version CLI flag #12

Closed pdehaan closed 9 years ago

pdehaan commented 9 years ago

Before:

$ polyjuice --version
Option '--version' not supported. Trigger 'polyjuice -h' for more details.

After:

$ polyjuice --version
1.0.3

$ polyjuice
Usage: polyjuice [options]

    --help, -h
        Displays help information about this script
        'polyjuice -h' or 'polyjuice --help'

    --jshint
        Defines the source file for jshint
        'polyjuice --jshint .jshintrc'

    --jscs
        Defines the source file for jscs
        'polyjuice --jscs .jscsrc'

    --version
        Displays version info
        polyjuice --version