Skip to content

Improve "-threads" command-line argument retrieval, remove "-argv0"#1429

Merged
N-Dekker merged 2 commits into
mainfrom
command-line-argument-threads
Apr 15, 2026
Merged

Improve "-threads" command-line argument retrieval, remove "-argv0"#1429
N-Dekker merged 2 commits into
mainfrom
command-line-argument-threads

Conversation

@N-Dekker
Copy link
Copy Markdown
Member

Added error checking to the "-threads" command-line argument

Removed the internal "-argv0" from the command-line argument map, as it is no longer used:

  • ComponentLoader::LoadComponents stopped using argv0 with commit c093574, "SK: Some huge changes", Stefan Klein, Feb 12, 2008.
  • The argv0 parameter was removed from ComponentLoader::LoadComponents with commit e72d2b6 "COMP: Fix Clang dangling-gsl warning in LoadComponents...", by me, 10-11-2020

Replaced `atoi` with `Conversion::StringToValue`, and added error checking.
It is no longer used:

`ComponentLoader::LoadComponents` stopped using `argv0` with commit c093574, "SK: Some huge changes", Stefan Klein, Feb 12, 2008.

The `argv0` parameter was removed from `ComponentLoader::LoadComponents` with commit e72d2b6 "COMP: Fix  Clang dangling-gsl warning in LoadComponents...", by me, 10-11-2020
@N-Dekker N-Dekker merged commit 8747f8b into main Apr 15, 2026
7 of 8 checks passed
@N-Dekker N-Dekker deleted the command-line-argument-threads branch April 15, 2026 12:34
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