← Back to issue list

main: rename debug option to trace for consistency (CRAFT-513)

View original Github issue

Metadata

Project
craft-parts
Number
#126
Type
pull request
State
merged
Author
cmatsuoka
Labels
—
Created
Updated
Closed

Current evaluation

Craft maintainer PR #126 renamed the craft-parts CLI `--debug` flag to `--trace` for consistency with other craft tools; merged via commit 184b4829 (squash e71042bc) and shipped in craft-parts 1.0.1.

Resolution: closed resolved

Reason: PR #126 was approved and merged into main as commit 184b4829 (commit e71042bc), changing craft_parts/main.py to expose --trace instead of --debug. The changelog for 1.0.1 (2021-09-13) records 'Change CLI tool --debug option to --trace to be consistent with craft tools'.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Future craft tools will adopt `--trace` as the standard CLI option to display debug messages, and Snapcraft uses `--debug` for a different purpose. Rename the craft-parts CLI option to be consistent with tools. Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Craft maintainer PR #126 renamed the craft-parts CLI `--debug` flag to `--trace` for consistency with other craft tools; merged via commit 184b4829 (squash e71042bc) and shipped in craft-parts 1.0.1.
stealth/space-bunny-alpha — closed resolved Merged in PR #126 (commit 184b4829), renaming craft-parts' CLI --debug option to --trace for consistency with future craft tools and Snapcraft.
qwen/qwen3.6-35b-a3b — — Merged a change renaming the craft-parts CLI debug option to --trace for consistency with future craft tools. Approved by two reviewers, passed CI, and applied with a minimal two-line update.
qwen3.6-35b-a3b-mtp-q6 — — Merged renaming the CLI --debug option to --trace to align with future craft tools, avoiding conflicts with Snapcraft's existing --debug usage.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#89 Improved default global options: removed --trace and added --verbosity as a way to set all modes (CRAFT-1133). craft-cli merged Merged in canonical/craft-cli#89 via d8e1951, replacing --trace with --verbosity for selecting quiet, brief, verbose, debug, or trace output.
72%
#128 release: bump version to 1.0.1 (CRAFT-514) craft-parts merged Merged PR #128 released craft-parts 1.0.1 with plugin-test, source-handler, apt-cache and CLI improvements, including the --debug-to---trace rename.
71%