From: Daniel Stenberg Date: Tue, 31 May 2022 22:33:17 +0000 (+0200) Subject: remote-name.d: mention --output-dir X-Git-Tag: curl-7_84_0~107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6b2bc6db8725a88c85daab4aed62dda29c18817;p=thirdparty%2Fcurl.git remote-name.d: mention --output-dir plus add two see-alsos Closes #8945 --- diff --git a/docs/cmdline-opts/remote-name.d b/docs/cmdline-opts/remote-name.d index c149c185c6..030572503f 100644 --- a/docs/cmdline-opts/remote-name.d +++ b/docs/cmdline-opts/remote-name.d @@ -4,14 +4,14 @@ Help: Write output to a file named as the remote file Category: important output Example: -O https://example.com/filename Added: 4.0 -See-also: remote-name-all +See-also: remote-name-all output-dir remote-header-name --- Write output to a local file named like the remote file we get. (Only the file part of the remote file is used, the path is cut off.) The file will be saved in the current working directory. If you want the file saved in a different directory, make sure you change the current working -directory before invoking curl with this option. +directory before invoking curl with this option or use --output-dir. The remote file name to use for saving is extracted from the given URL, nothing else, and if it already exists it will be overwritten. If you want the