Skip to content

Commit

Permalink
More docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
helly25 committed Oct 2, 2024
1 parent d7821e3 commit 9bbcfc9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions mbo/mope/mope_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@ ABSL_FLAG(
set,
{},
"A comma separated list of `name=value` pairs, used to seed the template config. "
"The name is split by colons into sections and final section key. Global context "
"variables can be set with an empty section, e.g. `--set=:config=42` creates a "
"global setting `config` with value `42` that is valid globall including all "
"nested sections. The flag `--set=section:name=text` creates a value `name` in "
"the section `section` with value `text`.");
"The name is split by colons into sections and final section key. Global context variables can "
"be set with an empty section, e.g. `--set=:config=42` creates a setting `config` with value "
"`42` that is valid globally including all nested sections. The flag `--set=section:name=text` "
"creates a value `name` in the section `section` with value `text`.");

// NOLINTEND(*avoid-non-const-global-variables,*abseil-no-namespace)

Expand Down Expand Up @@ -114,6 +113,12 @@ MOPE: Mope Over Pump Ends - Is a simple templating system.
--set=(key=val,)+ List of comma separated `key`, `value` pairs used to
set simple values. If key contains a `:`, then a sub
section will be created with the left part of the key.
Global context variables can be set with an empty
section, e.g. `--set=:config=42` creates a setting
`config` with value `42` that is valid globally
including all nested sections.
The flag `--set=section:name=text` creates a value
`name` in the section `section` with value `text`.
--ini=<filename> An optional INI file that can be used to configure
the template data, see below.
Expand Down

0 comments on commit 9bbcfc9

Please sign in to comment.