When `inspect_args` function is disbaled (e.g. when `env = production`), and there is no use for `other_args` (`catch_all` is not used), then shellcheck triggers a warning on this line: ```bash run() { # ... declare -g -a other_args=() # ... } ``` This PR: 1. Adds a `Command#catch_all_used_anywhere?` method that checks if the command itself or any of its descendants is using `catch_all` 2. Adds a condition check that uses this method before rendering the `other_args` declaration.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by DannyBen and has received 0 comments.