AG005: Args Declared but :args Never Called
| Property | Value |
|---|---|
| Code | AG005 |
| Severity | Error |
| Since | v0.1.0 |
Description
A function declares an args=() array but never calls :args or :usage
to actually parse the arguments. The array declaration has no effect without
the corresponding parse call.
Example
This triggers AG005:
How to Fix
Add a call to :args (or :usage if the function also has subcommands):
How to Suppress
Or file-wide:
Was this section helpful?