-
Notifications
You must be signed in to change notification settings - Fork 60
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! See suggestions in-line.
lib/charliecloud.py
Outdated
if (log_quiet > 0): | ||
fail_ct = 0 | ||
if (trace_fatal): | ||
ERROR("“quiet” incompatible with “debug”") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to mention the environment variable here too since folks might not make the translation or remember they set it.
Co-authored-by: Reid Priedhorsky <[email protected]>
Co-authored-by: Reid Priedhorsky <[email protected]>
Co-authored-by: Reid Priedhorsky <[email protected]>
Co-authored-by: Reid Priedhorsky <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! Several suggestions in-line.
@@ -98,13 +101,15 @@ Common options placed before or after the sub-command: | |||
subprocesses. Profile data should still be written on fatal errors, but | |||
not if the program crashes. | |||
|
|||
:code:`-q, --quiet` | |||
Be quieter; can be repeated. Incompatible :code:`-v` and suppresses | |||
:code:`--debug` regardless of option order. See the :ref:`FAQ entry on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should revisit the --debug
incompatibility? It seems orthogonal now.
Also --debug
seems to be undocumented here.
@@ -1098,6 +1094,153 @@ linuxcontainers.org uses the opposite order for “le” in the architecture nam | |||
$ wget https://uk.lxd.images.canonical.com/images/alpine/3.15/ppc64el/default/20220304_13:00/rootfs.tar.xz | |||
$ ch-image import rootfs.tar.xz ppc64le/alpine:3.17 | |||
|
|||
.. _faq_verbosity: | |||
|
|||
How can I control Charliecloud’s quietness or verbosity? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Say something about Charliecloud's own stdout in this section?
lib/charliecloud.py
Outdated
if (cli.verbose): | ||
ERROR("“quiet” incompatible with “verbose”") | ||
fail_ct += 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could do it where every -v
increases verbosity by 1 and every -q
decreases it by 1. I wonder if that's too weird though.
Co-authored-by: Reid Priedhorsky <[email protected]>
Co-authored-by: Reid Priedhorsky <[email protected]>
closes #1613