[nnpkg/tflite_run] make help option work (#6879)
author이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 <sg5.lee@samsung.com>
Mon, 26 Aug 2019 02:09:26 +0000 (22:09 -0400)
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Mon, 26 Aug 2019 02:09:26 +0000 (11:09 +0900)
commita65b855d4476247b9f71e4a301600b09a848f57b
tree1013ddc24709bec438a2cebb79887ea3cf781e5a
parenta3979b025821895bec73349952a56d3c24fe435e
[nnpkg/tflite_run] make help option work (#6879)

Currently, tflite/nnpackage_run does not recognize help option.

It complains like:

$ LD_LIBRARY_PATH=Product/out/lib Product/out/bin/nnpackage_run --help
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::required_option> >'
  what():  the option '--nnpackage' is required but missing
  Aborted (core dumped)

This patch fixes it by notifying errors after parsing help option.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
tests/tools/nnpackage_run/src/args.cc
tests/tools/tflite_run/src/args.cc