cli: describe --continue in more detail

This commit is contained in:
Albert S. 2019-04-30 23:43:31 +02:00
джерело 55da974558
коміт bc9fa97aa0
2 змінених файлів з 8 додано та 2 видалено

@ -16,7 +16,10 @@
int CommandAdd::handle(QStringList arguments) int CommandAdd::handle(QStringList arguments)
{ {
QCommandLineParser parser; QCommandLineParser parser;
parser.addOptions({{{"c", "continue"}, "Continue adding files, don't exit on first error"}, parser.addOptions({{{"c", "continue"},
"Continue adding files, don't exit on first error. If this option is not given, qss will exit "
"asap, but it's possible that a few files will still be processed. "
"Set -t 1 to avoid this behavior, but processing will be slower. "},
{{"a", "all"}, "On error, no files should be added, even already processed ones"}, {{"a", "all"}, "On error, no files should be added, even already processed ones"},
{{"v", "verbose"}, "Print skipped and added files"}, {{"v", "verbose"}, "Print skipped and added files"},
{{"t", "threads"}, "Number of threads to use.", "threads"}}); {{"t", "threads"}, "Number of threads to use.", "threads"}});

@ -14,7 +14,10 @@ int CommandUpdate::handle(QStringList arguments)
{{"n", "dry-run"}, "Only print which files would be updated, don't actually update them"}, {{"n", "dry-run"}, "Only print which files would be updated, don't actually update them"},
{"pattern", "Only consider to update files in the index matching the pattern, e. g. */.git/*.", "pattern"}, {"pattern", "Only consider to update files in the index matching the pattern, e. g. */.git/*.", "pattern"},
{{"d", "delete"}, "If a file does not exist anymore, delete it"}, {{"d", "delete"}, "If a file does not exist anymore, delete it"},
{{"c", "continue"}, "Continue adding files, don't exit on first error"}, {{"c", "continue"},
"Continue adding files, don't exit on first error. If this option is not given, qss will exit asap, but it's "
"possible that a few files will still be processed. "
"Set -t 1 to avoid this behavior, but processing will be slower."},
{{"a", "all"}, "On error, no files should be updated, even already processed ones"}, {{"a", "all"}, "On error, no files should be updated, even already processed ones"},
{{"t", "threads"}, "Number of threads to use.", "threads"} {{"t", "threads"}, "Number of threads to use.", "threads"}