Skip to content

Commit

Permalink
fix: Version takes only two parameters
Browse files Browse the repository at this point in the history
    /**
     * Set the program version to `str`.
     *
     * This method auto-registers the "-V, --version" flag
     * which will print the version number when passed.
     *
     * @param {string} str
     * @param {string} [flags]
     * @returns {Command} for chaining
     */
    version(str: string, flags?: string): Command;
  • Loading branch information
roderik authored May 15, 2020
1 parent 789a327 commit 5951fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/daf-cli/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import program from 'commander'

const { version } = require('../package.json')

program.version(version, '-v, --version', 'output the current version')
program.version(version, '-v, --version')

0 comments on commit 5951fe4

Please sign in to comment.