Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mimetypes CLI cannot handle multiple file parameters #136507

Open
Labels
stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error
@Wulian233

Description

@Wulian233

Bug report

Bug description:

According to

parser.add_argument('type',nargs='+',help='a type to search')

, the use ofnargs='+' indicates that the original intention was to support passing multiple files and identifying their MIME types one by one

However, the current behavior only processes the first file. For example, running the following command:

> python mimetypes.py 1.pdf 1.pngtype: application/pdf encoding: None

only outputs the type information for1.pdf, while1.png is ignored.

CPython versions tested on:

3.14

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp