|
50 | 50 | provides a class which stores all option values and that class can be |
51 | 51 | freely passed around your program to modules which need access to the |
52 | 52 | options. All the other components can be used only in the place where |
53 | | - the actual parsing is the done. However, it might also make sense for the |
| 53 | + the actual parsing is done. However, it might also make sense for the |
54 | 54 | individual program modules to describe their options and pass them to the |
55 | 55 | main module, which will merge all options. Of course, this is only |
56 | 56 | important when the number of options is large and declaring them in one |
@@ -208,7 +208,7 @@ desc.add_options() |
208 | 208 | <para>The description string has one or more paragraphs, separated by |
209 | 209 | the newline character ('\n'). When an option is output, the library |
210 | 210 | will compute the indentation for options's description. Each of the |
211 | | - paragraph is output as a separate line with that intentation. If |
| 211 | + paragraph is output as a separate line with that indentation. If |
212 | 212 | a paragraph does not fit on one line it is spanned over multiple |
213 | 213 | lines (which will have the same indentation). |
214 | 214 | </para> |
@@ -538,21 +538,21 @@ desc.add_options() |
538 | 538 | </para> |
539 | 539 |
|
540 | 540 | <para>The environment variables can be parsed with the |
541 | | - &parse_environment; function. The function have several overloaded |
| 541 | + &parse_environment; function. The function has several overloaded |
542 | 542 | versions. The first parameter is always an &options_description; |
543 | 543 | instance, and the second specifies what variables must be processed, and |
544 | 544 | what option names must correspond to it. To describe the second |
545 | 545 | parameter we need to consider naming conventions for environment |
546 | 546 | variables.</para> |
547 | 547 |
|
548 | 548 | <para>If you have an option that should be specified via environment |
549 | | - variable, you need make up the variable's name. To avoid name clashes, |
| 549 | + variable, you need to make up the variable's name. To avoid name clashes, |
550 | 550 | we suggest that you use a sufficiently unique prefix for environment |
551 | 551 | variables. Also, while option names are most likely in lower case, |
552 | 552 | environment variables conventionally use upper case. So, for an option |
553 | 553 | name <literal>proxy</literal> the environment variable might be called |
554 | 554 | <envar>BOOST_PROXY</envar>. During parsing, we need to perform reverse |
555 | | - conversion of the names. This is accomplished by passing the choosen |
| 555 | + conversion of the names. This is accomplished by passing the chosen |
556 | 556 | prefix as the second parameter of the &parse_environment; function. |
557 | 557 | Say, if you pass <literal>BOOST_</literal> as the prefix, and there are |
558 | 558 | two variables, <envar>CVSROOT</envar> and <envar>BOOST_PROXY</envar>, the |
@@ -588,7 +588,7 @@ desc.add_options() |
588 | 588 | representations that are available in C++ literals are not supported by |
589 | 589 | lexical_cast, and thus will not work with program_options.</para> |
590 | 590 |
|
591 | | - <para>Booleans a special in that there are multiple ways to come at them. |
| 591 | + <para>Booleans are special in that there are multiple ways to come at them. |
592 | 592 | Similar to another value type, it can be specified as <code>("my-option", |
593 | 593 | value<bool>())</code>, and then set as:</para> |
594 | 594 | <screen> |
@@ -648,7 +648,7 @@ example --other-switch |
648 | 648 |
|
649 | 649 | <row> |
650 | 650 | <entry>&parse_command_line;</entry> |
651 | | - <entry>parses command line (simpified interface)</entry> |
| 651 | + <entry>parses command line (simplified interface)</entry> |
652 | 652 | </row> |
653 | 653 |
|
654 | 654 | <row> |
|
0 commit comments