Document tag set.

This commit is contained in:
Alec Thomas
2018-09-19 13:00:35 +10:00
parent 2e29ff8981
commit 0ba159f97d
+3
View File
@@ -429,6 +429,9 @@ Variables are set with the `Vars{"key": "value", ...}` option. Undefined
variable references in the grammar will result in an error at construction
time.
Variables can also be set via the `set:"K=V"` tag. In this case, those variables will be available for that
node and all children. This is useful for composition by allowing the same struct to be reused.
When interpolating into flag or argument help strings, some extra variables
are defined from the value itself: