Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Exclude blank args from subcommand parsing #94

Merged
merged 1 commit into from
May 13, 2022

Conversation

andrii-zakurenyi
Copy link
Contributor

Fixes "index out of range" panic which is caused by checking the first character in blank argument.

panic: runtime error: index out of range [0] with length 0 [recovered]
        panic: runtime error: index out of range [0] with length 0

@mitchellh
Copy link
Owner

Thank you!

@mitchellh mitchellh merged commit 25f4c7c into mitchellh:main May 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants