From 72dae1f7be670b0aa90fa62c8498c10e475832ab Mon Sep 17 00:00:00 2001 From: Albert S Date: Thu, 23 Jun 2022 11:09:55 +0200 Subject: [PATCH] cli: CommandAdd: Mention we read from stdin when no path is given --- cli/commandadd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/commandadd.cpp b/cli/commandadd.cpp index 01311d2..cb7d5a3 100644 --- a/cli/commandadd.cpp +++ b/cli/commandadd.cpp @@ -47,7 +47,8 @@ int CommandAdd::handle(QStringList arguments) {{"t", "threads"}, "Number of threads to use.", "threads"}}); parser.addHelpOption(); - parser.addPositionalArgument("add", "Add paths to the index", "add [paths...]"); + parser.addPositionalArgument("add", "Add paths to the index", + "add [paths...]. If no path is given, read from stdin, one path per line."); parser.process(arguments); this->keepGoing = parser.isSet("continue");