diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-11-16 14:20:36 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-16 15:15:57 +0100 |
commit | 342aa4797edfabba78755e798d23a5b6d288d50b (patch) | |
tree | c9607e88e05cef2f5084f6428151c5de52ee2fc4 /docs/cmdline-opts/remote-name.d | |
parent | c3c1e9618513d245861c35ec0c563ab71ce892bb (diff) | |
download | gnurl-342aa4797edfabba78755e798d23a5b6d288d50b.tar.gz gnurl-342aa4797edfabba78755e798d23a5b6d288d50b.tar.bz2 gnurl-342aa4797edfabba78755e798d23a5b6d288d50b.zip |
cmdline-docs: more conversion
Diffstat (limited to 'docs/cmdline-opts/remote-name.d')
-rw-r--r-- | docs/cmdline-opts/remote-name.d | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/cmdline-opts/remote-name.d b/docs/cmdline-opts/remote-name.d new file mode 100644 index 000000000..9fed64bf4 --- /dev/null +++ b/docs/cmdline-opts/remote-name.d @@ -0,0 +1,21 @@ +Long: remote-name +Short: O +Help: Write output to a file named as the remote file +--- +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. + +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 +server to be able to choose the file name refer to --remote-header-name which +can be used in addition to this option. If the server chooses a file name and +that name already exists it will not be overwritten. + +There is no URL decoding done on the file name. If it has %20 or other URL +encoded parts of the name, they will end up as-is as file name. + +You may use this option as many times as the number of URLs you have. |