fix: remove duplicate status check and add missing port flag description in start command#437
fix: remove duplicate status check and add missing port flag description in start command#437A-d-i-t-y wants to merge 2 commits into
Conversation
…ion in start command - Removed duplicate 'Running' status check that was already handled by the switch statement below - Added missing description for --port flag so users understand what the flag does Signed-off-by: Aditya <aaaditya1909@gmail.com>
|
Hi @Harsh4902 @Vaishnav88sk, I have raised this PR to fix two small issues in the start command - removed a duplicate Running status check and added a missing description for the --port flag. Would love your feedback! |
|
I think it's a duplicate of #307 @A-d-i-t-y Please check! |
|
Hi @Vaishnav88sk, thank you for pointing this out! I apologize for the oversight — I was not aware that this was already covered in PR #307. I will close this PR now. Sorry for the noise! |
Not to worry, and please do not say |
|
Thank you @Vaishnav88sk! Will make sure to check existing PRs before raising new ones. Appreciated Also, I have 5 other PRs open whenever you get a chance to review:
No rush at all, happy to make any changes based on your feedback |
Summary
Two small but genuine fixes in cmd/start.go.
Fix 1 — Remove duplicate Running status check
The
Runningstatus was being checked twice:The duplicate check was redundant and has been removed.
Fix 2 — Add missing --port flag description
The --port flag had an empty description string:
startCmd.Flags().StringVar(&hostPort, "port", "8585", "")
Users running microcks start --help had no idea what --port does.
Added a proper description.
Files Changed