Skip to content

Update pki CLI to use ArgumentParser#4931

Merged
edewata merged 1 commit intodogtagpki:masterfrom
edewata:python
Jan 22, 2025
Merged

Update pki CLI to use ArgumentParser#4931
edewata merged 1 commit intodogtagpki:masterfrom
edewata:python

Conversation

@edewata
Copy link
Copy Markdown
Contributor

@edewata edewata commented Jan 21, 2025

The pki CLI has been updated to parse the main arguments (which are also defined in MainCLI.java) using ArgumentParser, determine the subcommand, then pass the remaining arguments to the Python or Java module corresponding to the subcommand.

It does not use subparsers like in pki-server since the pki CLI does not have the list of Java subcommands.

The pki CLI have options that might conflict with other options in some subcommands. That will be addressed separately later.

The help message for default message format in MainCLI.java has also been updated.

Note: All pylint issues have been fixed now, but apparently there are existing Flake8 issues that were hidden by pylint issues. They will be fixed separately later.

The pki CLI has been updated to parse the main arguments (which
are also defined in MainCLI.java) using ArgumentParser, determine
the subcommand, then pass the remaining arguments to the Python
or Java module corresponding to the subcommand.

It does not use subparsers like in pki-server since the pki CLI
does not have the list of Java subcommands.

The pki CLI have options that might conflict with other options
in some subcommands. That will be addressed separately later.

The help message for default message format in MainCLI.java has
also been updated.
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@fmarco76 fmarco76 left a comment

Choose a reason for hiding this comment

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

LGTM

@edewata
Copy link
Copy Markdown
Contributor Author

edewata commented Jan 22, 2025

@fmarco76 Thanks!

@edewata edewata merged commit 0c5c7e4 into dogtagpki:master Jan 22, 2025
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