Accept log level names for --log-level and record CLI argument errors
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
The payload names no files, so start by finding where --log-level is parsed and where the LoggingLevel values and the general.loggingLevel names are defined, and make the names match those. Done means names work case-insensitively alongside the numbers, secrets is rejected, and a command line argument error writes usage and the error to %TEMP%\nvda-cli-error.log and stderr while keeping exit code 2. The issue is untriaged and the secrets removal is a breaking change, so wait for a maintainer decision before starting.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
Two related gaps in NVDA's command line handling:
--log-levelonly accepts numbers (5, 10, 12, 15, 20, 100).
The names used bygeneral.loggingLevelin the configuration
(debug_unredacted,debug,io,debugwarning,info,off)
are rejected, so users must memorize magic numbers. The help text
additionally names a stalesecretsalias that matches nothing in
the configuration.- When command line arguments are invalid, NVDA (which runs without a
console) reports the error only in a message dialog. Nothing reaches
stderr or any file, so failed unattended launches cannot be diagnosed.
Describe the solution you'd like
- Accept level names case-insensitively for
--log-level, in addition
to the existing numbers. Valid names mirrorLoggingLevel:
debug_unredacted5,debug10,io12,debugwarning15,
info20,off100. Numbers keep working unchanged. - Drop the stale
secretsalias so accepted names stay in step with
the configuration (explicit minor break:--log-level=secretswill
be rejected). - On any command line argument error, write usage plus the error to
%TEMP%\nvda-cli-error.logand to stderr, name the saved path in
the dialog, and keep exit code 2.
Describe alternatives you've considered
- Status quo (numbers only): keeps the confusing mismatch between CLI
and configuration. - Writing the error log to the NVDA log directory instead of
%TEMP%:
rejected, the config path is not resolved at argument-parse time.
Additional context
I plan to implement this and will open a PR once this issue is triaged.
- Dominant language
- Python
- Stars
- 2.7k
- Forks
- 842
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 56
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nvaccess/nvda
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
needs-technical-investigation p5 triaged
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
nvaccess/nvda#21085 · 7 comments ·
Maintainers usually reply within 1 day
-
Braille Viewer draws two braille patterns wrongly (U+28CC, U+2873) because of glyph errors in FreeMono-FixedBraille.ttfMay be free again A pull request for this issue was closed without being merged. Openaudience/a11y-tester good first issue p4 triaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nvaccess/nvda#21022 · 3 comments ·
Maintainers usually reply within 1 day
-
api-breaking-change audience/nvda-dev p5 release/blocking release/blocking-beta triaged
Difficulty 2/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
p5 triaged
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pimutils/vdirsyncer#1242 ·
-
priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
QuantConnect/lean-cli#792 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
open-webui/open-webui#35360 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100