Skip to content

[Request]: Consistent, useful behavior for --debug. #507

@jglogan

Description

@jglogan

Feature or enhancement request details

Tasks:

  • --debug is available every that it makes sense.
  • The global flags to which --debug belongs appear in consistent order relative to other options across all subcommands.
  • Where --debug does appear, it provides clear and actionable output. If the debug output does appears elsewhere than the CLI output (e.g. OS logs), the CLI informs the user where the debug output can be found.
  • If debug is not present and the CONTAINER_DEBUG environment variable is truthy, debug is enabled.
  • CONTAINER_DEBUG included in help text for debug everywhere (or consider removing it everywhere if we switch to using env variables instead of user defaults for settings). At present all commands seem to display it except system start.

Right now these leaf commands do not have --debug:

  • build
  • registry login
  • default unset
  • default inspect
  • volume [*]
  • builder [*]
  • system dns [*]
  • system stop
  • system status
  • system kernel set
  • help

Perhaps we can look at #360 as well while attending to this one.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersnextItems in scope for the next few milestonesuxUser experience features and fixes.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions