-
Notifications
You must be signed in to change notification settings - Fork 24
Add commandline argument parser #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
7daf014
to
c8619ed
Compare
Cool, this is awesome! Could you maybe add a small doc to the README? |
It is often useful to be able to directly specify a serial port and its settings from the commandline rather than having to select it in the GUI each time. Add a CLI parser based on `gumdrop` to parse commandline arguments. The selected serial port is then immediately opened on startup.
Added documentation! I also pushed another commit which adds CLI arguments to configure column labels and colors. This is also documented in the README. |
Add two more CLI arguments, `--column` and `--color` which can be used to set column labels and colors automatically. For multiple columns, these arguments can be specified multiple times. For example: --column Raw --color 555555 --column Temperature --color ff8000 The color arguments are hex colors without a leading `#` sign.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, sorry about that!
Thanks a lot, this a really nice improvement! |
@hacknus when are you planning to cut a new release? :) |
sorry! thanks for the reminder! https://github.com/hacknus/serial-monitor-rust/releases/tag/v0.3.6 the release binaries are being built now and will be attached to the release within the next hour. |
It is often useful to be able to directly specify a serial port and its settings from the commandline rather than having to select it in the GUI each time.
Add a CLI parser based on
gumdrop
to parse commandline arguments. The selected serial port is then immediately opened on startup.