phrohdoh / easage

A library that provides programmatic manipulation of BIG archives.
MIT License
9 stars 0 forks source link

Option to set which BIG format to use for packing #9

Closed Teteros closed 6 years ago

Teteros commented 6 years ago

Currently you can only change BIG format to use for packing only at compile time. https://github.com/Phrohdoh/easage/blob/master/src/bin/easage_pack.rs#L35

A runtime easage pack option to pick the BIG kind to pack into would be more user friendly.

phrohdoh commented 6 years ago

I agree entirely. Would you be interested in taking this on?

Teteros commented 6 years ago

It sounds simple enough, I'll look into it after #10 is resolved.

Teteros commented 6 years ago

https://github.com/Phrohdoh/easage/commit/16997aba06e2e004de3ded758e4542d670821b3f closes this, thanks.

phrohdoh commented 6 years ago

16997aba06e2e004de3ded758e4542d670821b3f added a kind flag to the easage pack command.

--kind <kind>        BIG archive kind (BIGF or BIG4, case-sensitive)

Example usage:

$ easage pack --source WindowSource/ --output window-easage-new.big --kind BIGF 

An incorrect value will yield an error such as:

$ easage pack --source WindowSource/ --output window-easage-new.big --kind BIG5
error: Invalid value for '--kind <kind>': kind must be one of 'BIGF' or 'BIG4'