error message when --recursive is called on bind

This commit is contained in:
Julyanna Francesca C. Huang 2025-08-10 22:21:51 +08:00 committed by Oliver Blanthorn
parent 1b860da584
commit 1dafb76912
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -4373,6 +4373,10 @@ export function comclear(name: string) {
*/
//#background
export async function bind(...args: string[]) {
if (args.includes("--recursive")) {
throw new Error("`--recursive` can only be called on unbind.")
}
const args_obj = parse_bind_args(...args)
let p = Promise.resolve()
if (args_obj.excmd !== "") {