wendlers / mpfshell

A simple shell based file explorer for ESP8266 Micropython based devices ⛺
MIT License
396 stars 84 forks source link

Add a port command line argument #42

Closed stlehmann closed 7 years ago

stlehmann commented 7 years ago

First I want to say many thanks for this fantastic tool. I use mpfshell for all my micropython projects for quite a while now and really like the simplicity and functionality of it.

I want to suggest a small but - in my opinion - very useful extension to make the workflow even more smooth. I often find myself starting and leaving mpfshell in the process of development. It would be great to have a command-line argument that opens the given port automatically on startup of mpfshell. Something as simple as:

$ mpfshell /dev/tty.wchusbserialfd120

This way one could skip the open myspecificport command at the beginning of a mpfshell session which otherwise has to be typed again and again on the beginning of each mpfshell session. With a port command-line argument the user will be able to make use of the reverse-search and autocomplete features of the shell or even use an alias to get mpfshell up and running on the right port at once.

I think this would be a great improvement to the general workflow and I would also be willing to implement it.

Kind Regards Stefan

stlehmann commented 7 years ago

Silly me. I' ve just recognised that one can open the port at once by using the -c flag. $ mpfshell -c open tty.wchusbserialfd120 does a fine job.

Sorry for the confusion.