summaryrefslogtreecommitdiff
path: root/src/linguist
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-10-19 09:54:00 +0200
committerKai Köhne <kai.koehne@qt.io>2022-10-21 13:59:32 +0200
commit883a8ea1220c032586f2781e1503c2140870ffb0 (patch)
treecc71950469af342c37850a59cd0d256e33f70644 /src/linguist
parente9e32ae52b3ef0775c3259092a6a1b0bfcd823a8 (diff)
downloadqttools-883a8ea1220c032586f2781e1503c2140870ffb0.tar.gz
lupdate: Explain -locations options in command help
The difference between "-locations absolute" and "-locations relative" is only in the stored line information. For relative, the line number is relative to a previous potential entry in the same file and prefixed by a '+'. For absolute, the line number is just counting from the beginning of the file. Anyhow, from the existing help output this is unclear, and users might expect that 'absolute' and 'relative' first and foremost applies to the file path. Fixes: QTBUG-107107 Pick-to: 6.4 Change-Id: Ibc62df867b9fc914cf8c8fa076a555b35c240a54 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/linguist')
-rw-r--r--src/linguist/lupdate/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/linguist/lupdate/main.cpp b/src/linguist/lupdate/main.cpp
index 126318e94..be9676eca 100644
--- a/src/linguist/lupdate/main.cpp
+++ b/src/linguist/lupdate/main.cpp
@@ -245,6 +245,11 @@ static void printUsage()
" May be specified multiple times.\n"
" -locations {absolute|relative|none}\n"
" Specify/override how source code references are saved in TS files.\n"
+ " absolute: Source file path is relative to target file. Absolute line\n"
+ " number is stored.\n"
+ " relative: Source file path is relative to target file. Line number is\n"
+ " relative to other entries in the same source file.\n"
+ " none: no information about source location is stored.\n"
" Guessed from existing TS files if not specified.\n"
" Default is absolute for new files.\n"
" -no-ui-lines\n"