mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-01-12 20:30:56 -08:00
Now you can specify more than one allowed (implicit) for a CLI option:
(defcli! (doom somecommand) ((foo ("--foo" (file int)))))
This will test FOO to ensure it is either an existing file path or an
integer. If neither is true, you'll see this helpful error:
Error: -o/--file received invalid value "FOO"
Validation errors:
- Not an integer.
- Not a valid path to an existing file.
|
||
|---|---|---|
| .. | ||
| cli | ||
| lib | ||
| doom-cli-lib.el | ||
| doom-cli.el | ||
| doom-editor.el | ||
| doom-keybinds.el | ||
| doom-lib.el | ||
| doom-modules.el | ||
| doom-packages.el | ||
| doom-projects.el | ||
| doom-start.el | ||
| doom-ui.el | ||
| doom.el | ||
| packages.el | ||