tool_help.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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) 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. * SPDX-License-Identifier: curl
  24. *
  25. ***************************************************************************/
  26. #include "tool_setup.h"
  27. void tool_help(char *category);
  28. void tool_list_engines(void);
  29. void tool_version_info(void);
  30. typedef unsigned int curlhelp_t;
  31. struct helptxt {
  32. const char *opt;
  33. const char *desc;
  34. curlhelp_t categories;
  35. };
  36. /*
  37. * The bitmask output is generated with the following command
  38. ------------------------------------------------------------
  39. make -C docs/cmdline-opts listcats
  40. */
  41. #define CURLHELP_HIDDEN 1u << 0u
  42. #define CURLHELP_AUTH 1u << 1u
  43. #define CURLHELP_CONNECTION 1u << 2u
  44. #define CURLHELP_CURL 1u << 3u
  45. #define CURLHELP_DNS 1u << 4u
  46. #define CURLHELP_FILE 1u << 5u
  47. #define CURLHELP_FTP 1u << 6u
  48. #define CURLHELP_HTTP 1u << 7u
  49. #define CURLHELP_IMAP 1u << 8u
  50. #define CURLHELP_IMPORTANT 1u << 9u
  51. #define CURLHELP_IPFS 1u << 10u
  52. #define CURLHELP_MISC 1u << 11u
  53. #define CURLHELP_OUTPUT 1u << 12u
  54. #define CURLHELP_POP3 1u << 13u
  55. #define CURLHELP_POST 1u << 14u
  56. #define CURLHELP_PROXY 1u << 15u
  57. #define CURLHELP_SCP 1u << 16u
  58. #define CURLHELP_SFTP 1u << 17u
  59. #define CURLHELP_SMTP 1u << 18u
  60. #define CURLHELP_SSH 1u << 19u
  61. #define CURLHELP_TELNET 1u << 20u
  62. #define CURLHELP_TFTP 1u << 21u
  63. #define CURLHELP_TLS 1u << 22u
  64. #define CURLHELP_UPLOAD 1u << 23u
  65. #define CURLHELP_VERBOSE 1u << 24u
  66. extern const struct helptxt helptext[];
  67. #endif /* HEADER_CURL_TOOL_HELP_H */