Author: dsahlberg
Date: Thu Nov 30 06:43:05 2023
New Revision: 1914222

URL: http://svn.apache.org/viewvc?rev=1914222&view=rev
Log:
12345678901234567890123456789012345678901234567890123456789012345678901234567890
Clarify the help message for svnmucc PUT on how to get the file contents from
stdin.

Just using "-" causes getopt to give an unhelpful error message.

Discussed on users@ [1] and dev@ [2] and the actual message was suggested by
hartmannathan.

* subversion/svnmucc/svnmucc.c
  (help): Clarify help text for PUT

[1] https://lists.apache.org/thread/dxyklzf39dh2oov1kh6rp9csc4h5rxxh
[2] https://lists.apache.org/thread/l7x22yp6kb71qlv3rn8tfmcrc5hk73r4


Modified:
    subversion/trunk/subversion/svnmucc/svnmucc.c

Modified: subversion/trunk/subversion/svnmucc/svnmucc.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/svnmucc/svnmucc.c?rev=1914222&r1=1914221&r2=1914222&view=diff
==============================================================================
--- subversion/trunk/subversion/svnmucc/svnmucc.c (original)
+++ subversion/trunk/subversion/svnmucc/svnmucc.c Thu Nov 30 06:43:05 2023
@@ -286,7 +286,9 @@ help(FILE *stream, apr_pool_t *pool)
       "  mv SRC-URL DST-URL     : move SRC-URL to DST-URL\n"
       "  rm URL                 : delete URL\n"
       "  put SRC-FILE URL       : add or modify file URL with contents copied 
from\n"
-      "                           SRC-FILE (use \"-\" to read from standard 
input)\n"
+      "                           SRC-FILE (to read from standard input, use 
\"--\"\n"
+      "                           to stop option processing followed by \"-\" 
to\n"
+      "                           indicate standard input)\n"
       "  propset NAME VALUE URL : set property NAME on URL to VALUE\n"
       "  propsetf NAME FILE URL : set property NAME on URL to value read from 
FILE\n"
       "  propdel NAME URL       : delete property NAME from URL\n"


Reply via email to