Skip to content

Commit

Permalink
Fix missing append parameter in east util rtt
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkoSagadin committed Nov 8, 2023
1 parent 0059175 commit 6de360a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [Unreleased]

### Fixed

- Newly added `--append` option was not properly added.

## [0.17.0] - 2023-11-08

### Addedd
### Added

- `--append` flag to the `east util rtt` command. If you use this option, then
new RTT logs will not overwrite old logfile, but the will be appended to it.
Expand Down
9 changes: 7 additions & 2 deletions src/east/system_commands/util_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ def get_device(runner_yaml):
)
@click.pass_obj
def connect(east, device, jlink_id, rtt_port, speed):

"""Connects to a device and creates a RTT server with [bold cyan]JLinkExe[/].
Expand Down Expand Up @@ -113,8 +112,14 @@ def connect(east, device, jlink_id, rtt_port, speed):
type=str,
help="Relative path to a log file into which to save RTT output.",
)
@click.option(
"-a",
"--append",
type=str,
help="Appends RTT output to a log file, instead of overwriting it. Requires --logfile option.",
)
@click.pass_obj
def rtt(east, local_echo, rtt_port, logfile):
def rtt(east, local_echo, rtt_port, logfile, append):
"""Runs a RTT client which connects to a running RTT server.
Expand Down

0 comments on commit 6de360a

Please sign in to comment.