Skip to content

Conversation

@piallai
Copy link
Contributor

@piallai piallai commented Jan 1, 2026

safer regarding memory allocation

Caution: indentation was not changed in 'main', for diff clarity sake

safer regarding memory allocation
exception for -h about invalid arg (in common.hpp parse_options)
piallai added a commit to piallai/stable-diffusion.cpp that referenced this pull request Jan 4, 2026
@leejet
Copy link
Owner

leejet commented Jan 6, 2026

Since sd-cli is a CLI-only program, using std::exit in argument parsing is reasonable and not a problem.

@piallai
Copy link
Contributor Author

piallai commented Jan 7, 2026

Indeed. Actually std::exit has a radical behaviour (hard exit no matter what) that is not compatible with my fork. So it was just to propose a way to also make the repo safer in a general manner. But you're right, it does not change much the original cli behaviour.

@piallai piallai closed this Jan 7, 2026
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