Command line arguments for --pager
or --no-pager
.
More...
#include <tsPagerArgs.h>
|
bool | page_by_default = false |
| Use a page process by default.
|
|
bool | use_pager = false |
| Actually use a page process.
|
|
Command line arguments for --pager
or --no-pager
.
◆ PagerArgs()
ts::PagerArgs::PagerArgs |
( |
bool |
pageByDefault = false , |
|
|
bool |
stdoutOnly = true |
|
) |
| |
Default constructor.
- Parameters
-
[in] | pageByDefault | If true, paging is enabled by default and option --no-pager is defined. If false, do not page by default and option --pager is defined. |
[in] | stdoutOnly | If true, use only stdout. If false, if stdout is not a terminal but stderr is one, then use stderr for paging. |
◆ defineArgs()
void ts::PagerArgs::defineArgs |
( |
Args & |
args | ) |
|
Add command line option definitions in an Args.
- Parameters
-
[in,out] | args | Command line arguments to update. |
◆ loadArgs()
Load arguments from command line.
Args error indicator is set in case of incorrect arguments.
- Parameters
-
[in,out] | duck | TSDuck execution context. |
[in,out] | args | Command line arguments. |
- Returns
- True on success, false on error in argument line.
◆ output()
Return the output device for display.
- Parameters
-
[in,out] | report | Where to report errors. |
- Returns
- A reference to the output device, either
std::cout
or a pager stream.
The documentation for this class was generated from the following file: