Skip to content

bugfix: Incorrect usage is displayed when running nerdctl without any command #4426

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Exar04
Copy link

@Exar04 Exar04 commented Jul 26, 2025

Fixes : #3185

@AkihiroSuda AkihiroSuda added this to the v2.1.4 milestone Jul 31, 2025
@AkihiroSuda
Copy link
Member

Thanks, but nerdctl SUBCOMMAND --help still seems to print an incorrect usage

$ nerdctl container --help
Manage containers

Usage: nerdctl container [flags]

@Exar04
Copy link
Author

Exar04 commented Aug 1, 2025

Removing the condition itself does solve the issue. but not Sure if it messes up in some other places.

@AkihiroSuda
Copy link
Member

@AkihiroSuda
Copy link
Member

Doesn't seem correct

$ nerdctl ps --help
List containers

Usage: nerdctl ps [command] flag

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.

Incorrect usage is displayed when running nerdctl without any command
2 participants