1 #ifndef HEADER_CURL_TOOL_HELP_H
2 #define HEADER_CURL_TOOL_HELP_H
3 /***************************************************************************
4  *                                  _   _ ____  _
5  *  Project                     ___| | | |  _ \| |
6  *                             / __| | | | |_) | |
7  *                            | (__| |_| |  _ <| |___
8  *                             \___|\___/|_| \_\_____|
9  *
10  * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
11  *
12  * This software is licensed as described in the file COPYING, which
13  * you should have received as part of this distribution. The terms
14  * are also available at https://curl.se/docs/copyright.html.
15  *
16  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17  * copies of the Software, and permit persons to whom the Software is
18  * furnished to do so, under the terms of the COPYING file.
19  *
20  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21  * KIND, either express or implied.
22  *
23  ***************************************************************************/
24 #include "tool_setup.h"
25 
26 void tool_help(char *category);
27 void tool_list_engines(void);
28 void tool_version_info(void);
29 
30 typedef unsigned int curlhelp_t;
31 
32 struct helptxt {
33   const char *opt;
34   const char *desc;
35   curlhelp_t categories;
36 };
37 
38 /*
39  * The bitmask output is generated with the following command
40  ------------------------------------------------------------
41   cd $srcroot/docs/cmdline-opts
42   ./gen.pl listcats *.d
43  */
44 
45 #define CURLHELP_HIDDEN 1u << 0u
46 #define CURLHELP_AUTH 1u << 1u
47 #define CURLHELP_CONNECTION 1u << 2u
48 #define CURLHELP_CURL 1u << 3u
49 #define CURLHELP_DNS 1u << 4u
50 #define CURLHELP_FILE 1u << 5u
51 #define CURLHELP_FTP 1u << 6u
52 #define CURLHELP_HTTP 1u << 7u
53 #define CURLHELP_IMAP 1u << 8u
54 #define CURLHELP_IMPORTANT 1u << 9u
55 #define CURLHELP_MISC 1u << 10u
56 #define CURLHELP_OUTPUT 1u << 11u
57 #define CURLHELP_POP3 1u << 12u
58 #define CURLHELP_POST 1u << 13u
59 #define CURLHELP_PROXY 1u << 14u
60 #define CURLHELP_SCP 1u << 15u
61 #define CURLHELP_SFTP 1u << 16u
62 #define CURLHELP_SMTP 1u << 17u
63 #define CURLHELP_SSH 1u << 18u
64 #define CURLHELP_TELNET 1u << 19u
65 #define CURLHELP_TFTP 1u << 20u
66 #define CURLHELP_TLS 1u << 21u
67 #define CURLHELP_UPLOAD 1u << 22u
68 #define CURLHELP_VERBOSE 1u << 23u
69 
70 extern const struct helptxt helptext[];
71 
72 #endif /* HEADER_CURL_TOOL_HELP_H */
73