From 93ff159e3274b5bea55a4cbefac463c734626894 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 12 Mar 2001 09:47:23 +0000 Subject: [PATCH] split up the big printf() into several ones to never use strings longer than 509 letters (as newer gcc warns on with -Wall) --- src/main.c | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/main.c b/src/main.c index 6647df872..480c07b30 100644 --- a/src/main.c +++ b/src/main.c @@ -242,61 +242,60 @@ static void help(void) " -a/--append Append to target file when uploading (F)\n" " -A/--user-agent User-Agent to send to server (H)\n" " -b/--cookie Cookie string or file to read cookies from (H)\n" - " -B/--use-ascii Use ASCII/text transfer\n" - " -C/--continue-at Specify absolute resume offset\n" + " -B/--use-ascii Use ASCII/text transfer\n", + curl_version()); + puts(" -C/--continue-at Specify absolute resume offset\n" " -d/--data HTTP POST data (H)\n" " --data-ascii HTTP POST ASCII data (H)\n" " --data-binary HTTP POST binary data (H)\n" " -D/--dump-header Write the headers to this file\n" - " -e/--referer Referer page (H)\n" - " -E/--cert Specifies your certificate file and password (HTTPS)\n" + " -e/--referer Referer page (H)"); + puts(" -E/--cert Specifies your certificate file and password (HTTPS)\n" " --cacert CA certifciate to verify peer against (HTTPS)\n" " -f/--fail Fail silently (no output at all) on errors (H)\n" " -F/--form Specify HTTP POST data (H)\n" " -g/--globoff Disable URL sequences and ranges using {} and []\n" " -h/--help This help text\n" - " -H/--header Custom header to pass to server. (H)\n" - " -i/--include Include the HTTP-header in the output (H)\n" + " -H/--header Custom header to pass to server. (H)"); + puts(" -i/--include Include the HTTP-header in the output (H)\n" " -I/--head Fetch document info only (HTTP HEAD/FTP SIZE)\n" " --interface Specify the interface to be used\n" " --krb4 Enable krb4 with specified security level (F)\n" " -K/--config Specify which config file to read\n" - " -l/--list-only List only names of an FTP directory (F)\n" - " -L/--location Follow Location: hints (H)\n" + " -l/--list-only List only names of an FTP directory (F)"); + puts(" -L/--location Follow Location: hints (H)\n" " -m/--max-time Maximum time allowed for the transfer\n" " -M/--manual Display huge help text\n" " -n/--netrc Read .netrc for user name and password\n" - " -N/--no-buffer Disables the buffering of the output stream\n" - " -o/--output Write output to instead of stdout\n" + " -N/--no-buffer Disables the buffering of the output stream"); + puts(" -o/--output Write output to instead of stdout\n" " -O/--remote-name Write output to a file named as the remote file\n" " -p/--proxytunnel Perform non-HTTP services through a HTTP proxy\n" " -P/--ftpport
Use PORT with address instead of PASV when ftping (F)\n" " -q When used as the first parameter disables .curlrc\n" - " -Q/--quote Send QUOTE command to FTP before file transfer (F)\n" - " -r/--range Retrieve a byte range from a HTTP/1.1 or FTP server\n" + " -Q/--quote Send QUOTE command to FTP before file transfer (F)"); + puts(" -r/--range Retrieve a byte range from a HTTP/1.1 or FTP server\n" " -s/--silent Silent mode. Don't output anything\n" " -S/--show-error Show error. With -s, make curl show errors when they occur\n" " -t/--telnet-option Set telnet option\n" " -T/--upload-file Transfer/upload to remote site\n" - " --url Another way to specify URL to work with\n" - " -u/--user Specify user and password to use\n" + " --url Another way to specify URL to work with"); + puts(" -u/--user Specify user and password to use\n" " -U/--proxy-user Specify Proxy authentication\n" " -v/--verbose Makes the operation more talkative\n" " -V/--version Outputs version number then quits\n" " -w/--write-out [format] What to output after completion\n" " -x/--proxy Use proxy. (Default port is 1080)\n" - " -X/--request Specific request command to use\n" - " -y/--speed-time Time needed to trig speed-limit abort. Defaults to 30\n" + " -X/--request Specific request command to use"); + puts(" -y/--speed-time Time needed to trig speed-limit abort. Defaults to 30\n" " -Y/--speed-limit Stop transfer if below speed-limit for 'speed-time' secs\n" " -z/--time-cond