Commit Graph

14 Commits

Author SHA1 Message Date
Matteo Cypriani 93248eb611 Display basename in usage message 2018-05-05 23:39:54 +02:00
Matteo Cypriani 9f29662cbf Implement --no-strip-subchannel 2018-05-05 23:39:54 +02:00
Matteo Cypriani 924dd3c8c7 Implement --version switch 2018-05-05 23:39:54 +02:00
Matteo Cypriani bdca31c3fd main: fix bad usage error handling 2016-12-22 14:10:53 -05:00
Matteo Cypriani 3a970c3e33 main: exit() only at the end
std::process::exit() was used mainly to be able to return an error code,
but it's pretty brutal (no destructors calls). This commit works around
the lack of return value for main() and calls exit() only at the very
end.
2016-12-08 20:57:28 -05:00
Matteo Cypriani 76b895e4c1 main: a few style improvements 2016-12-08 20:57:28 -05:00
Matteo Cypriani 2b8f4a98d3 Use getopts to parse command-line 2016-12-08 20:57:28 -05:00
Matteo Cypriani 4b92eb0239 Improve handling of output file names
* Use PathBuf operations to generate output file names.
* Output files are now written to the working directory.
* The cue sheet contains only the image's base name, not the full path.
2016-12-07 16:06:10 -05:00
Matteo Cypriani 3f03a6c37b Add copyright & license 2016-12-06 22:52:31 -05:00
Matteo Cypriani 2e74951628 Audio data extraction 2016-12-06 21:32:51 -05:00
Matteo Cypriani 5973a06c1b Add basic cue sheet handling
The cue sheet is printed to stdout.
2016-12-06 18:06:13 -05:00
Matteo Cypriani c3584042cc Open fd in main()
main() now opens the NRG image, instead of letting parse_nrg_metadata()
do it.

parse_nrg_metadata() was renamed read_nrg_metadata().
2016-12-06 15:06:45 -05:00
Matteo Cypriani e2a41e6282 Move metadata-related modules into metadata 2016-12-06 15:06:45 -05:00
Matteo Cypriani f22f7fdbc3 Cue sheet display working
Initial commit with only cue sheet reading and display.
2016-12-05 12:29:03 -05:00