Lines Matching defs:category
43 curlhelp_t category;
57 {"misc", "Options that don't fit into any other category", CURLHELP_MISC},
77 static void print_category(curlhelp_t category)
85 if(!(helptext[i].categories & category))
98 if(helptext[i].categories & category) {
103 /* Prints category if found. If not, it returns 1 */
104 static int get_category_content(const char *category)
108 if(curl_strequal(categories[i].opt, category)) {
110 print_category(categories[i].category);
125 void tool_help(char *category)
128 /* If no category was provided */
129 if(!category) {
131 "menu is stripped into categories.\nUse \"--help category\" to get "
138 else if(curl_strequal(category, "all"))
141 /* Lets handle the string "category" differently to not print an errormsg */
142 else if(curl_strequal(category, "category"))
144 /* Otherwise print category and handle the case if the cat was not found */
145 else if(get_category_content(category)) {
146 puts("Invalid category provided, here is a list of all categories:\n");
149 free(category);