comedi_board_info: Clarify usage message

Put square brackets around "COMEDI_DEVICE" on the usage line to indicate
that it is optional, and add a line to indicate that it defaults to
"/dev/comedi0" if unspecified.

Also change "1Ghz" to "1 GHz" in the description of the -F option.
This commit is contained in:
Ian Abbott 2018-03-07 11:24:43 +00:00
parent 8295ed72bb
commit cbb8ca63c9
1 changed files with 4 additions and 3 deletions

View File

@ -232,11 +232,12 @@ int main(int argc,char *argv[])
case 'h':
default:
fprintf(stderr,
"usage: comedi_board_info [OPTIONS] COMEDI_DEVICE\n"
"usage: comedi_board_info [OPTIONS] [COMEDI_DEVICE]\n"
" -n number of channels for async command (default 1)\n"
" -F probing sampling rate for async command (default 1Ghz)\n"
" -F probing sampling rate for async command (default 1 GHz)\n"
" -v verbose output\n"
" -h this help screen\n");
" -h this help screen\n"
"COMEDI_DEVICE defaults to /dev/comedi0 if unspecified\n");
exit(1);
}
}