python / python/mypy

(๐Ÿž) `dmypy` arg parsing is inconsistent and confusing

Open
#15,802 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug topic-daemon
Dominant language
Python
Stars
20.6k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

๐Ÿ‘‰ dmypy run test.py -- --strict 
Daemon started
Success: no issues found in 42 source files
๐Ÿ‘‰ dmypy run test.py --export-types -- --strict
usage: dmypy [-h] [--status-file STATUS_FILE] [-V] {start,restart,status,stop,kill,check,run,recheck,suggest,inspect,hang,daemon,help} ...
dmypy: error: unrecognized arguments: -- --strict

Workaround

Put the files after the --:

๐Ÿ‘‰ dmypy run --export-types -- test.py --strict

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up โ€” it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the dmypy run command entry point and reproduce both argument arrangements shown in the issue. Trace how options before and after -- are parsed; done means the documented arrangements are handled consistently without the reported unrecognized-arguments error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.