diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-18 14:42:38 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-20 21:32:03 -0700 |
commit | 4deb46290da1f89422cf1f269b516317d98822a6 (patch) | |
tree | 39ab5aed46c7bac35bb1f5be556cddcb072a95f3 /parse_util.h | |
parent | e5ef45e4c04b6126ea74c4010b2d8fe1c0b06cca (diff) |
Remove additional dead code from old parser
Diffstat (limited to 'parse_util.h')
-rw-r--r-- | parse_util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/parse_util.h b/parse_util.h index e6ba1653..c918b9b5 100644 --- a/parse_util.h +++ b/parse_util.h @@ -151,6 +151,15 @@ void parse_util_set_argv(const wchar_t * const *argv, const wcstring_list_t &nam wchar_t *parse_util_unescape_wildcards(const wchar_t *in); /** + Checks if the specified string is a help option. + + \param s the string to test + \param min_match is the minimum number of characters that must match in a long style option, i.e. the longest common prefix between --help and any other option. If less than 3, 3 will be assumed. +*/ +bool parse_util_argument_is_help(const wchar_t *s, int min_match); + + +/** Calculates information on the parameter at the specified index. \param cmd The command to be analyzed |