-
Notifications
You must be signed in to change notification settings - Fork 1
Require -- separator for passing command arguments
#42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Mossaka <[email protected]>
Co-authored-by: Mossaka <[email protected]>
Co-authored-by: Mossaka <[email protected]>
-- separator for passing command arguments without quoting
Test Coverage Report
Coverage ThresholdsThe project has the following coverage thresholds configured:
Coverage report generated by `npm run test:coverage` |
|
@copilot I think you could remove the legacy quoted syntax and update docs |
Co-authored-by: Mossaka <[email protected]>
Done in commit 5df6182. Removed the legacy quoted syntax and updated all documentation to require Key changes:
The help output now clearly shows the requirement: And when users forget the |
-- separator for passing command arguments without quoting-- separator for passing command arguments
Commands with complex arguments previously supported both quoted string syntax and
--separator syntax. This has been simplified to require only the--separator, providing a cleaner and more consistent interface.Changes
CLI Argument Parsing
<command>(single required string) to[args...](variadic array)--separator for all commands (legacy quoted syntax removed)Shell Escaping
escapeShellArg(): Quotes arguments containing special characters, escapes single quotes using'\\''techniquejoinShellArgs(): Preserves argument boundaries when constructing shell command from arrayDocumentation
--separator onlyUsage
The
--separator ensures proper argument handling and avoids shell escaping issues with complex commands.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.