Copied the -h logic from setup.c to sendcommand.c