Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
In shell completion, there is `.exe` suffix on Windows and this does not provide same experience across platforms, #16499

Signed-off-by: Leo Liu <[email protected]>
  • Loading branch information
silver886 authored Jan 8, 2025
1 parent d78732d commit df776ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/podman/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ Options:

var (
rootCmd = &cobra.Command{
// In shell completion, there is `.exe` suffix on Windows.
// This does not provide the same experience across platforms
// and was mentioned in [#16499](https://github.com/containers/podman/issues/16499).
//
// It was waiting for a fix in cobra upstream, but since that has not happened yet,
// a fix was implemented in [#24966](https://github.com/containers/podman/pull/24966).
Use: strings.TrimSuffix(filepath.Base(os.Args[0]), ".exe") + " [options]",
Long: "Manage pods, containers and images",
SilenceUsage: true,
Expand Down

0 comments on commit df776ca

Please sign in to comment.