Skip to content

Comments

Enhance hex2bin tool with additional command-line options and update …#8

Merged
igorrius merged 2 commits intomainfrom
use-16-bytes-records-for-hex
May 7, 2025
Merged

Enhance hex2bin tool with additional command-line options and update …#8
igorrius merged 2 commits intomainfrom
use-16-bytes-records-for-hex

Conversation

@igorrius
Copy link
Owner

@igorrius igorrius commented May 7, 2025

…README

  • Added support for --all and --record-bytes=N flags in the hex2bin tool to control output behavior.
  • Updated main.go to handle new command-line arguments and improve usage instructions.
  • Enhanced README with detailed descriptions of new options and examples for usage.
  • Refactored BinToIntelHex function to BinToIntelHexWithMode for improved flexibility in data writing.

…README

- Added support for `--all` and `--record-bytes=N` flags in the hex2bin tool to control output behavior.
- Updated main.go to handle new command-line arguments and improve usage instructions.
- Enhanced README with detailed descriptions of new options and examples for usage.
- Refactored BinToIntelHex function to BinToIntelHexWithMode for improved flexibility in data writing.
@igorrius igorrius self-assigned this May 7, 2025
Copilot AI review requested due to automatic review settings May 7, 2025 10:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the hex2bin tool by introducing new command-line options to better control output behavior and updates its usage instructions and documentation.

  • Added processing for the "--all" and "--record-bytes=N" flags in main.go.
  • Refactored the BinToIntelHex function into BinToIntelHexWithMode to support adjustable output modes and record sizes.
  • Updated README.md with detailed descriptions and examples for the new flags.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
main.go Updated argument parsing logic and usage instructions to support new flags.
converter/converter.go Refactored the conversion function to accept new parameters for output control.
README.md Enhanced documentation to include new command-line flag usage and examples.

The BinToIntelHex function was not being used and has been removed to simplify the codebase. This eliminates redundant code and reduces potential maintenance overhead.
@igorrius igorrius merged commit 6356417 into main May 7, 2025
2 checks passed
@igorrius igorrius deleted the use-16-bytes-records-for-hex branch May 7, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant