AP_HAL_SITL: Return zero when using the help command

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-05-26 18:19:41 -03:00 committed by Peter Barker
parent 26d1e34c19
commit b608ceb6ed
1 changed files with 3 additions and 0 deletions

View File

@ -457,6 +457,9 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
printf("Setting SYSID_THISMAV=%d\n", sysid);
break;
}
case 'h':
_usage();
exit(0);
default:
_usage();
exit(1);