Skip to content

Legacy CLI to handle sketch paths with spaces. #1162

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

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

Conversation

toniab
Copy link

@toniab toniab commented Jun 28, 2025

Resolves: Issue #1138

Changes: Using arguments.multiple() to pass the argument strings to Commander rather than defining each argument as a Clikt val in advance.

Tests: The following configs worked.

  • run --args='cli --sketch="/Users/tonz/Documents/Processing/test space/sketch_Test" --run'
  • run --args='cli --help'

Warning: When testing changes to this file, if you run into an error, try running:
rm -rf /[ YOUR REPOSITORY PATH ]/app/build/compose/tmp

Question: Should we nicely handle if they did not specify a required argument? Right now it errors out if no sketch is passed.

@Stefterv
Copy link
Collaborator

Thank you @toniab for this PR! 💙

Question: Should we nicely handle if they did not specify a required argument? Right now it errors out if no sketch is passed.

Is the error the same as in 4.3.4? If so, then we shouldn't really change it

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