-
Notifications
You must be signed in to change notification settings - Fork 283
Open
Description
Hi, I have noticed a weird thing:
When I add the default -h option to my program call, the help menu displays as intended:
$ ./test -h
Usage: test [--help] [--version] [--debug] mode
Positional arguments:
mode Operation mode: 'run' (single pass of the tester) or 'dim' (run a DIM server accepting commands)
Optional arguments:
-h, --help shows help message and exits
-v, --version prints version information and exits
-d, --debug Enable debug mode
this also works when using std::cerr << program;
However, when I use std::cout << program;, the output looks like so:
$ ./test -
Usage: test [--help] [--version] [--debug] mode
Positional arguments:
mode000000000 Operation mode: 'run' (single pass of the tester) or 'dim' (run a DIM server accepting commands)
Optional arguments:
-h, --help000 shows help message and exits
-v, --version prints version information and exits
-d, --debug00 Enable debug mode
With those weird trailing zeros in the formatting. Is this a bug, or am I missing something?
Metadata
Metadata
Assignees
Labels
No labels