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

Cli errormsg #122

Merged
merged 3 commits into from
May 28, 2022
Merged

Cli errormsg #122

merged 3 commits into from
May 28, 2022

Conversation

jmaglic
Copy link
Member

@jmaglic jmaglic commented May 28, 2022

Improves error messages displayed when using the CLI, in case there are any required command line arguments missing. Previously, the missing arguments would not be explicitly named. With this change, a list of missing command line arguments are returned as part of the error message.

Resolves: #118

To prepare a rework of the error message system, the contents of the
function printErrorMessage() was moved to where the function was
previously called to reduce abstraction.
Added new error codes to be displayed if one, two, or all three required
command line arguments are missing. These error codes contain
placeholders, so that the missing command line argument can be
dynamically inserted. This way, the user obtains the full information on
what arguments are missing.

Resolves: #118
@jmaglic jmaglic merged commit a143c29 into master May 28, 2022
@jmaglic jmaglic deleted the cli-errormsg branch May 28, 2022 20:36
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.

UX: CLI is not telling which arguments are required
1 participant