| OLD | NEW |
| 1 ============================== | 1 ============================== |
| 2 CommandLine 2.0 Library Manual | 2 CommandLine 2.0 Library Manual |
| 3 ============================== | 3 ============================== |
| 4 | 4 |
| 5 .. contents:: | 5 .. contents:: |
| 6 :local: | 6 :local: |
| 7 | 7 |
| 8 Introduction | 8 Introduction |
| 9 ============ | 9 ============ |
| 10 | 10 |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 | 611 |
| 612 This program blah blah blah...** | 612 This program blah blah blah...** |
| 613 | 613 |
| 614 USAGE: compiler [options] <input file> | 614 USAGE: compiler [options] <input file> |
| 615 | 615 |
| 616 OPTIONS: | 616 OPTIONS: |
| 617 ... | 617 ... |
| 618 -help - display available options (-help-hidden for more) | 618 -help - display available options (-help-hidden for more) |
| 619 -o <filename> - Specify output filename | 619 -o <filename> - Specify output filename |
| 620 | 620 |
| 621 .. _grouping options into categories: | |
| 622 | |
| 623 Grouping options into categories | 621 Grouping options into categories |
| 624 -------------------------------- | 622 -------------------------------- |
| 625 | 623 |
| 626 If our program has a large number of options it may become difficult for users | 624 If our program has a large number of options it may become difficult for users |
| 627 of our tool to navigate the output of ``-help``. To alleviate this problem we | 625 of our tool to navigate the output of ``-help``. To alleviate this problem we |
| 628 can put our options into categories. This can be done by declaring option | 626 can put our options into categories. This can be done by declaring option |
| 629 categories (`cl::OptionCategory`_ objects) and then placing our options into | 627 categories (`cl::OptionCategory`_ objects) and then placing our options into |
| 630 these categories using the `cl::cat`_ option attribute. For example: | 628 these categories using the `cl::cat`_ option attribute. For example: |
| 631 | 629 |
| 632 .. code-block:: c++ | 630 .. code-block:: c++ |
| (...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1733 | 1731 |
| 1734 TODO: complete this section | 1732 TODO: complete this section |
| 1735 | 1733 |
| 1736 .. _dynamically loaded options: | 1734 .. _dynamically loaded options: |
| 1737 | 1735 |
| 1738 Dynamically adding command line options | 1736 Dynamically adding command line options |
| 1739 | 1737 |
| 1740 .. todo:: | 1738 .. todo:: |
| 1741 | 1739 |
| 1742 TODO: fill in this section | 1740 TODO: fill in this section |
| OLD | NEW |