Skip to content

Use System.CommandLine to Parse Command Line Args#1405

Merged
aaronburtle merged 15 commits intomainfrom
dev/aaronburtle/SystemCommandLine
Apr 3, 2023
Merged

Use System.CommandLine to Parse Command Line Args#1405
aaronburtle merged 15 commits intomainfrom
dev/aaronburtle/SystemCommandLine

Conversation

@aaronburtle
Copy link
Contributor

Why make this change?

Closes #860

What is this change?

We add System.CommandLine to the project, and leverage its command line parser to do the parsing of command line args for log level. We should not need to write our own parser, and this change aligns us more closely with the .NET CLI.

How was this tested?

Manually tested and run against our test suite.

Sample Request(s)

Easiest way to test is to run the service through the CLI. You can also modify the code in program to have any custom string array and pass that to the parsing function.

Copy link
Contributor

@abhishekkumams abhishekkumams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for quickly addressing the changes.

Copy link
Contributor

@seantleonard seantleonard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for updating the log level parsing mechanism!

@aaronburtle aaronburtle merged commit d9717ab into main Apr 3, 2023
@aaronburtle aaronburtle deleted the dev/aaronburtle/SystemCommandLine branch April 3, 2023 19:15
@aaronburtle aaronburtle self-assigned this May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Use commanline extension instead of writing our own parser for engine LogLevel argument

3 participants