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

View File

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