RaulCatalinas / HuskyBC

Command line for easy Husky configuration
0 stars 1 forks source link

Option "--collaborate" opens repository and executes default command #3

Closed RaulCatalinas closed 7 months ago

RaulCatalinas commented 7 months ago

The --collaborate option is currently causing unintended behavior when executed.

Instead of simply opening the associated GitHub repository in the user's default web browser, it also executes the default command of the CLI.

xxxAlvaDevxxx commented 7 months ago

The problem is caused by the fact that program.args is for the entry of each option.

example:

bun run split.js -s / --first a/b/c [ 'a' ]

Image

source: https://www.npmjs.com/package/commander

RaulCatalinas commented 7 months ago

Ok