Add cookie_use param to rigctl

https://github.com/Hamlib/Hamlib/issues/695
pull/712/head
Mike Black W9MDB 2021-05-25 09:18:20 -05:00
rodzic 70482d0afa
commit ffeb98a0da
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -86,7 +86,7 @@ static void usage(void);
* NB: do NOT use -W since it's reserved by POSIX.
* TODO: add an option to read from a file
*/
#define SHORT_OPTIONS "+m:r:p:d:P:D:s:c:t:lC:LuonvhVZ"
#define SHORT_OPTIONS "+m:r:p:d:P:D:s:c:t:lC:LuonvhVZ!"
static struct option long_options[] =
{
{"model", 1, 0, 'm'},
@ -113,6 +113,7 @@ static struct option long_options[] =
{"verbose", 0, 0, 'v'},
{"help", 0, 0, 'h'},
{"version", 0, 0, 'V'},
{"cookie", 0, 0, '!'},
{0, 0, 0, 0}
};
@ -172,6 +173,9 @@ int main(int argc, char *argv[])
switch (c)
{
case '!':
cookie_use = 1;
break;
case 'h':
usage();
exit(0);
@ -716,7 +720,8 @@ void usage(void)
" -Y, --ignore_err ignore rig_open errors\n"
" -Z, --debug-time-stamps enable time stamps for debug messages\n"
" -h, --help display this help and exit\n"
" -V, --version output version information and exit\n\n"
" -V, --version output version information and exit\n"
" -!, --cookie use cookie control\n\n"
);
usage_rig(stdout);