Skip to content

Commit

Permalink
fix amperka#19, amperka#81, amperka#82: Custom command line arguments…
Browse files Browse the repository at this point in the history
… for picocom
  • Loading branch information
nkrkv committed Sep 24, 2013
1 parent e782d73 commit 1edc68a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ Changelog
* Fix #23, #28: `make` is searched within Arduino IDE binaries as well
* Fix #88, #103: Correct version parsing for some distributions that mangle it
* Fix #46: Taking build number into account in version string
* Fix #19, #81, #82: Custom command line arguments for `picocom` can be passed
while running `ino serial`

0.3.5
* Fix #62: Include `MIT-LICENSE.txt` in the tarball.
Expand Down
8 changes: 6 additions & 2 deletions ino/commands/serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ def setup_arg_parser(self, parser):
help='Serial port to communicate with\nTry to guess if not specified')
parser.add_argument('-b', '--baud-rate', metavar='RATE', type=int, default=9600,
help='Communication baud rate, should match value set in Serial.begin() on Arduino')
parser.add_argument('remainder', nargs='*', metavar='ARGS',
help='Extra picocom args that are passed as is')

parser.usage = "%(prog)s [-h] [-p PORT] [-b RATE] [-- ARGS]"

def run(self, args):
serial_monitor = self.e.find_tool('serial', ['picocom'], human_name='Serial monitor (picocom)')
Expand All @@ -31,5 +35,5 @@ def run(self, args):
serial_monitor,
serial_port,
'-b', str(args.baud_rate),
'-l',
])
'-l'
] + args.remainder)

0 comments on commit 1edc68a

Please sign in to comment.