citty icon indicating copy to clipboard operation
citty copied to clipboard

fix: parameter cannot start with a hyphen

Open chen-sys opened this issue 1 year ago • 2 comments

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.

chen-sys avatar Oct 12 '24 11:10 chen-sys

Can you please add some unit tests?

pi0 avatar Oct 12 '24 13:10 pi0

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.

codecov[bot] avatar Oct 12 '24 13:10 codecov[bot]