Skip to content

CLI UX Refactor #4

Description

@jcook793

I propose refactoring the command-line arguments to be more in the style of subcommands and flags. For example, to list branches with git, you would use the branch subcommand and the --list flag:

$ git branch --list

Specifically, I would like to implement these subcommands:

  • peek <address> [<count>] replaces the following:
    • --dump
    • --lookup: use a --label flag to indicate the positional <address> argument is a label
    • --deref: use a --deref flag to indicate that the positional <address> argument contains the location of the address to be read (would need to use both --label and --deref flags to replicate the existing functionality of the current --deref command)
  • poke <file> replaces the following:
    • --upload: use a --hex flag to specify a hex file
    • --binary: use a --bin flag to specify binary
    • --upload-wdc: use a --wdc flag to specify a WDCTools file
    • --upload-srec: use a --srec flag to specify an SREC file
  • flash replaces --flash
  • revision replaces --revision
  • list-serial-ports replaces --list-ports (I don't love this one, but just "ports" seems too generic since TCP bridge mode was added)
  • bridge <host:port> replaces --tcp-bridge

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