Overview
wrapCLI allows you to wrap a regular JavaScript function and run it as a CLI command. It:
- Parses command-line arguments (
process.argv). - Supports positional and named arguments.
- Automatically converts argument strings to boolean, number, or string.
- Provides built-in help functionality with aliases.
- Handles async functions and errors gracefully.