We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My go-to way of quickly parsing arguments is as follows:
#!/bin/bash quiet="true" files=() for arg in "${@}"; do case "${arg}" in "-v" | "--verbose") quiet="false" ;; *) files+=( "${arg}" ) ;; esac done
Beautysh (v6.1.0) incorrectly reports this as indent/outdent mismatch and instead indents it like so:
The deciding factor seems to be the multi-line parenthesis in assigning files. If I assign it all on one line, like this:
files
files+=("${arg}")
then beautysh is satisfied with the indentation (i.e. doesn't change it or report a mismatch).
The text was updated successfully, but these errors were encountered:
Ah, it wouldn't surprise me if it were attempting to format that last ) as another variant in the case statement, or something similar. Nice find :)
)
Sorry, something went wrong.
No branches or pull requests
My go-to way of quickly parsing arguments is as follows:
Beautysh (v6.1.0) incorrectly reports this as indent/outdent mismatch and instead indents it like so:
The deciding factor seems to be the multi-line parenthesis in assigning
files
. If I assign it all on one line, like this:then beautysh is satisfied with the indentation (i.e. doesn't change it or report a mismatch).
The text was updated successfully, but these errors were encountered: