Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions byexample/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,11 @@ def parse_args(args=None):
default='all',
help="control how to pretty print the output."
)
g.add_argument(
"--no-progress-bar",
action='store_true',
help="do not show the progress bar."
)
g.add_argument(
'-V',
'--version',
Expand Down
3 changes: 2 additions & 1 deletion byexample/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,8 @@ def init_byexample(args, sharer):

verify_encodings(args.encoding, args.verbosity)
cfg = {
'use_progress_bar': args.pretty == 'all',
'use_progress_bar': args.pretty == 'all' and \
not args.no_progress_bar,
'use_colors': args.pretty == 'all',
'quiet': args.quiet,
'verbosity': args.verbosity,
Expand Down
4 changes: 3 additions & 1 deletion docs/overview/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ usage: byexample -l <languages> [--ff] [--timeout <secs>] [-j <n>] [--dry]
[-d {none,unified,ndiff,context,tool}] [--difftool <cmd>]
[--no-enhance-diff] [-o <options>] [--show-options]
[-m <dir>] [--encoding <enc>] [--show-failures <n>]
[--pretty {none,all}] [-V] [-v | -q] [-h | -xh]
[--pretty {none,all}] [--no-progress-bar] [-V] [-v | -q]
[-h | -xh]

Write snippets of code in C++, Python, Ruby, and others as documentation and
execute them as regression tests.
Expand Down Expand Up @@ -151,6 +152,7 @@ Miscellaneous Options:
suppress the rest (the execution of the examples is
not stopped, only the failures are not shown)
--pretty {none,all} control how to pretty print the output.
--no-progress-bar do not show the progress bar.
-V, --version show byexample's version and license, then exit

Logging:
Expand Down