Skip to content
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

fix: parameter cannot start with a hyphen #171

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chen-sys
Copy link

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.

@pi0
Copy link
Member

pi0 commented Oct 12, 2024

Can you please add some unit tests?

Copy link

codecov bot commented Oct 12, 2024

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 ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##             main    #171   +/-   ##
======================================
  Coverage        ?   5.06%           
======================================
  Files           ?      12           
  Lines           ?     810           
  Branches        ?      25           
======================================
  Hits            ?      41           
  Misses          ?     758           
  Partials        ?      11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants