1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From: YOKOTA Hiroshi <yokota.hgml@gmail.com>
Date: Fri, 3 Jan 2025 10:11:58 +0900
Subject: Add note for unexpected recursive operations behavior to usage text
Forwarded: https://sourceforge.net/p/sevenzip/bugs/2540/
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1091693
---
CPP/7zip/UI/Console/Main.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CPP/7zip/UI/Console/Main.cpp b/CPP/7zip/UI/Console/Main.cpp
index 4fa5c35..86cffb3 100644
--- a/CPP/7zip/UI/Console/Main.cpp
+++ b/CPP/7zip/UI/Console/Main.cpp
@@ -133,6 +133,10 @@ static const char * const kHelpString =
PROG_POSTFIX
" <command> [<switches>...] <archive_name> [<file_names>...] [@listfile]\n"
"\n"
+ "Note:\n"
+ " If <file_names> is not specified, 7z" PROG_POSTFIX " implicitly uses \".\" as <file_names>.\n"
+ " This means recursively add/delete/extract files to/from <arcive_name>.\n"
+ "\n"
"<Commands>\n"
" a : Add files to archive\n"
" b : Benchmark\n"
|