Skip to content

Commit d3aa33a

Browse files
author
Dave Abrahams
authored
Tweak help for the --line-directive option
Most people don't know what this is for and set it to "", robbing themselves of usability benefits. I'm going to add more help text to line-directive to explain that.
1 parent f98d7bd commit d3aa33a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/gyb.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,10 @@ def succ(a):
12371237
Line directive format string, which will be
12381238
provided 2 substitutions, `%%(line)d` and `%%(file)s`.
12391239
1240-
Example: `// #sourceLocation(file: "%%(file)s", line: %%(line)d)`
1240+
Example: `// ###sourceLocation(file: "%%(file)s", line: %%(line)d)`
1241+
1242+
The default works automatically with the `line-directive` tool,
1243+
which see for more information.
12411244
''')
12421245

12431246
args = parser.parse_args(sys.argv[1:])

0 commit comments

Comments
 (0)