Skip to content

Commit a1c3cd2

Browse files
Jakub Strzebonskicz4rs
Jakub Strzebonski
authored andcommitted
#1550 document command line arguments processing precedence
1 parent 275265d commit a1c3cd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/md/tutorial.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int main(int argc, char** argv) {
3131
\endcode
3232

3333
If, for any reason, you want to predefine configuration, you can do it
34-
by creating AppConfig object, setting its members as you wish,
34+
by creating `AppConfig` object, setting its members as you wish,
3535
and passing it to `vt::initialize`:
3636

3737
\code{.cpp}
@@ -63,6 +63,8 @@ int main(int argc, char** argv) {
6363
}
6464
\endcode
6565

66+
It is worth noting that if you run your application with any of vt's command-line arguments and at the same time you define and pass `AppConfig` to `vt::initialize`, CLI arguments have a higher priority. In other words, if you predefine in source code and give from the command line the same vt's argument, but with a different value, the program will use the CLI one.
67+
6668
\section tutorial-walkthrough Tutorial Code Snippets
6769

6870
This page walks through the tutorial that exists in the source code. See

0 commit comments

Comments
 (0)