citty
citty copied to clipboard
fix: parameter cannot start with a hyphen
If there is a string parameter in the command, the string will not be able to start with a hyphen (-).
For example, --params "-a 192.168.1.1 -b -c" will get empty params.
Can you please add some unit tests?
Codecov Report
Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
Please upload report for BASE (
main@fea15c4). Learn more about missing BASE report.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| src/_parser.ts | 0.00% | 2 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #171 +/- ##
======================================
Coverage ? 5.06%
======================================
Files ? 12
Lines ? 810
Branches ? 25
======================================
Hits ? 41
Misses ? 758
Partials ? 11
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.