int zp_take_opt_with_arg(char ***argvp, char opt, char **out_arg)
Consume a short option that requires an argument from argv.
char * my_ztrdup_glen(const char *s, unsigned *len_ret)
Duplicate a C string using zalloc and report length.
char * zp_unmetafy_zalloc(const char *to_copy, int *new_len)
Duplicate and unmetafy a zsh string using zsh allocators.
int zp_has_option(char **argv, char opt)
Lightweight option scanner for argv-style subcommands.