Skip to content

Make firmware file argument optional for non-flashing operationsย #191

@velison1

Description

@velison1

๐Ÿ“ Description:
Currently, the CLI requires a firmware file as a positional argument:

parser.add_argument('file')

This causes issues when running operations that do not need a firmware file, such as:

  • Reading chip ID
  • Erasing flash memory

๐Ÿ’ก Proposal:
Update the parser to make the file argument optional:

parser.add_argument('file', nargs='?', default=None, help='Firmware file to read/write')

This allows more flexibility in usage and better support for scripts and automation workflows that donโ€™t always involve flashing.

๐Ÿ” Context:
I'm using this tool as a submodule and needed this change to support a more dynamic flashing sequence via a Flask-based controller. Happy to open a PR if maintainers agree this direction makes sense!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions