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 command line arg parsing from string #132

Merged
merged 1 commit into from
Mar 1, 2024
Merged

Conversation

soininen
Copy link
Contributor

@soininen soininen commented Mar 1, 2024

User may accidentally enter multiple spaces between the arguments which we incorrectly parsed as empty arguments. This PR fixes the issue.

No associated issue

Checklist before merging

  • Unit tests have been added/updated accordingly
  • Code has been formatted by black
  • Unit tests pass

User may have accidentally entered multiple spaces between the arguments
which gives empty arguments when the string is blindly split at whitespace.
Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.50%. Comparing base (e0d0f0b) to head (ea4c030).
Report is 2 commits behind head on 0.8-dev.

Additional details and impacted files
@@           Coverage Diff            @@
##           0.8-dev     #132   +/-   ##
========================================
  Coverage    62.49%   62.50%           
========================================
  Files           46       46           
  Lines         3917     3918    +1     
  Branches       763      764    +1     
========================================
+ Hits          2448     2449    +1     
  Misses        1312     1312           
  Partials       157      157           

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

@soininen soininen merged commit 47ced11 into 0.8-dev Mar 1, 2024
11 of 12 checks passed
@soininen soininen deleted the fix_cmd_line_args branch March 1, 2024 07:09
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.

1 participant