Wave-Play / robo.js

Power up Discord with effortless activities, bots, servers, and more! ⚡
https://robojs.dev
MIT License
40 stars 19 forks source link

robo.js - Make multi-arg for options optional #331

Open Pkmmte opened 4 days ago

Pkmmte commented 4 days ago

Currently, our Robo CLI handler returns the entire string between options. This is problematic for options that only need a single value like -k --kit which will never have a value with spaces.

Worse yet, this means we cannot currently use any option before the positional args.

npx create-robo -k activity myactivity

The above assigns "activity myactivity" to the kit option rather than recognizing myactivity as the positional argument.


File: cli-handler.ts

https://github.com/Wave-Play/robo.js/blob/main/packages/robo/src/cli/utils/cli-handler.ts

Rishi-0007 commented 10 hours ago

Hi @Pkmmte, Please check and review the PR. Let me know if any further changes are needed to solve this issue.