google / emboss

Emboss is a tool for generating code that reads and writes binary data structures.
Apache License 2.0
71 stars 21 forks source link

Add --output-file embossc flag to allow setting exact generated file name #112

Closed studgeek closed 7 months ago

studgeek commented 7 months ago

Allow users to specific the exact output header they want from embossc

AaronWebster commented 7 months ago

The consequences of this are a little unclear on first glance when combined with --output_path. I suggest we have --output_file (with underscore as per the style guide) which defaults to the current behavior but can be overridden. So the output file is --output_path + --output_filename where --output_filename defaults to --input_file + '.h'. Even better if we could keep the concepts of path/directory/filename somewhat clear in the path.

reventlov commented 7 months ago

--output-file is consistent with --output-path and the other embossc flags.