Skip to content

Omit error message (i.e. assume ?) for empty command #146

@waldyrious

Description

@waldyrious

Currently simply pressing Enter in the debug prompt shows an error message:

1|debug>
Unknown command ``. Executing `?` to obtain help.
  Basic Commands:
  - st: show the status
 ...

I find the error message would make more sense if an actual command had been inserted. Perhaps emulating the behavior of git add --patch (i.e. immediately printing the help message for an empty command) would provide a better experience:

1|debug>
  Basic Commands:
  - st: show the status
 ...

Or, if we want to be more explicit:

1|debug>
Executing `?` to obtain help.
  Basic Commands:
  - st: show the status
 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions