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

Improve the command line interface #316

Merged
merged 6 commits into from
May 18, 2024
Merged

Improve the command line interface #316

merged 6 commits into from
May 18, 2024

Conversation

masatake
Copy link
Contributor

The -input option is handy. However, the -help option doesn't work, so there is no way to know about it.

I wonder whether we should use Logger to print the help message.
System.out.print... or System.err.print... looks better to me.
This is my first time writing a program in Java. I am not familiar with the conventions and culture of the language.

Anyway, better than nothing.

With the original code, -help prints nothing.
This change adjusts the log level.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Those who want to know the usage, just printing the usage is helpful.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
With the original code, -help prints the version information.
Just printing the version information may not help the a person
who wants to know about CLI usage of Ksar.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake force-pushed the improve-cli branch 2 times, most recently from f1738a7 to 44ef54c Compare May 11, 2024 15:19
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake
Copy link
Contributor Author

I added --help and -h options, doing the same as the -help option.

@masatake
Copy link
Contributor Author

Ping

@vlsi vlsi merged commit c8f38fa into vlsi:master May 18, 2024
4 of 5 checks passed
@Pitterling
Copy link
Collaborator

We have a long lasting issue for CLI.. the idea was to move it to something like picocli..

see
#164

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.

None yet

3 participants