bo-tracker and bo-data core dump with invalid command line options

Bug #1003657 reported by Gabo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Blitzortung-Tracker
Fix Released
Low
Andreas Würl

Bug Description

Starting bo-tracker or bo-data (v 1.0.3) with invalid command options

bo-tracker -h

or

bo-tracker -?

thows error message and core dump:

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::invalid_command_line_syntax> >'
  what(): required parameter is missing in 'server-host'
Aborted (core dumped)

I'd like to see more clear error message "invalid command line option -h. See bo-tracker --help for help." instead of core dump.

This is minor bug but core dumps launch Apport in ubuntu 12.04LTS.

Revision history for this message
Andreas Würl (awuerl) wrote :

The error message shown is already clear enough. In the case of bo-tracker -h is used to set the server hostname/address and this parameter is clearly missing.

The "help" output is displayed now for any error during parsing of arguments.

Changed in blitzortung-tracker:
importance: Undecided → Low
assignee: nobody → Andreas Würl (awuerl)
status: New → Fix Committed
Andreas Würl (awuerl)
Changed in blitzortung-tracker:
milestone: none → 1.0.4
Andreas Würl (awuerl)
Changed in blitzortung-tracker:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.