From 0982791db2ccb851f277ffa653065e4021e52b3f Mon Sep 17 00:00:00 2001 From: Timur Alperovich Date: Thu, 15 Jun 2017 20:53:04 -0700 Subject: Allow for uploads from standard input. If "-" is passed in for the source, python-swiftclient will upload the object by reading the contents of the standard input. The object name option must be set, as well, and this cannot be used in conjunction with other files. This approach stores the entire contents as one object. A follow on patch will change this behavior to upload from standard input as SLO, unless the segment size is larger than the content size. Change-Id: I1a8be6377de06f702e0f336a5a593408ed49be02 --- doc/source/cli/index.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/source/cli') diff --git a/doc/source/cli/index.rst b/doc/source/cli/index.rst index bded349..bec1f5e 100644 --- a/doc/source/cli/index.rst +++ b/doc/source/cli/index.rst @@ -369,10 +369,10 @@ given container. The ``-c`` or ``--changed`` is an option that will only upload files that have changed since the last upload. The ``--object-name `` is an option that will upload a file and name object to ```` or upload a directory and use ```` -as object prefix. The ``-S `` or ``--segment-size `` and -``--leave-segments`` are options as well (see ``--help`` for more). - -Uploads specified files and directories to the given container. +as object prefix. If the file name is "-", client reads content from standard +input. In this case ``--object-name`` is required to set the name of the object +and no other files may be given. The ``-S `` or ``--segment-size `` +and ``--leave-segments`` are options as well (see ``--help`` for more). **Positional arguments:** -- cgit v1.2.1