Skip to content

Commit

Permalink
Describe difference between --verbose and --debug
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Apr 20, 2020
1 parent 233cea0 commit 4ec50fa
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
7 changes: 4 additions & 3 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
Let's have a look at a couple of real-life examples!

You can obtain detailed list of available options for each command
by invoking it with ``--help``. To control the verbosity of the
output, use ``--debug`` and ``--quiet``. Depending on the command,
``--verbose`` might be also available.
by invoking it with ``--help``. In order to control the verbosity
of the output use ``--verbose`` and ``--quiet``. To display
implementation details for debugging use the ``--debug`` option.
See :ref:`/stories/cli/common` options for details.

Simply run ``tmt`` to get started with exploring your working
directory::
Expand Down
22 changes: 21 additions & 1 deletion stories/cli/common.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@ story:

/verbose:
summary: Enable verbose output of the command
story:
As a user I want to see more detailed information for
particular command.
description: |
Different verbose levels can be enabled by using the
option several times. For example, discover step shows
only number of tests by default, list of tests in verbose
level one and could show some further test details in
higher verbose levels.
example:
- tmt test show -v
- tmt test show -vvv
- tmt test show --verbose
implemented: /tmt/cli
documented: /tmt/cli
Expand Down Expand Up @@ -38,9 +48,19 @@ story:
documented: /tmt/cli

/debug:
summary: Print out everything tmt is doing
summary: Print additional information for debugging
story:
As a tmt developer I want to see as much details about
what's happening during execution so that I can easily
reveal bugs in the code.
description:
Debug level can be used to show detailed implementation
steps, revealing what's happening under the hood, so that
tool developers are able to more easily find bugs in the
code. Use the option multiple times to increase verbosity.
example:
- tmt run -d
- tmt run -ddd
- tmt run --debug
implemented: /tmt/cli
documented: /tmt/cli
Expand Down

0 comments on commit 4ec50fa

Please sign in to comment.