kopia lustrzana https://github.com/Hamlib/Hamlib
make xml in option usage conditional
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2024 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.5
rodzic
3e22a1156c
commit
2f9eece340
|
@ -4,7 +4,7 @@
|
||||||
* This program exercises the backup and restore of a radio
|
* This program exercises the backup and restore of a radio
|
||||||
* using Hamlib.
|
* using Hamlib.
|
||||||
*
|
*
|
||||||
* $Id: rigmem.c,v 1.3 2005-01-25 00:21:56 fillods Exp $
|
* $Id: rigmem.c,v 1.4 2005-04-20 13:33:18 fillods Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
|
@ -81,7 +81,9 @@ static struct option long_options[] =
|
||||||
{"civaddr", 1, 0, 'c'},
|
{"civaddr", 1, 0, 'c'},
|
||||||
{"set-conf", 1, 0, 'C'},
|
{"set-conf", 1, 0, 'C'},
|
||||||
{"all", 0, 0, 'a'},
|
{"all", 0, 0, 'a'},
|
||||||
|
#ifdef HAVE_XML2
|
||||||
{"xml", 0, 0, 'x'},
|
{"xml", 0, 0, 'x'},
|
||||||
|
#endif
|
||||||
{"verbose", 0, 0, 'v'},
|
{"verbose", 0, 0, 'v'},
|
||||||
{"help", 0, 0, 'h'},
|
{"help", 0, 0, 'h'},
|
||||||
{"version", 0, 0, 'V'},
|
{"version", 0, 0, 'V'},
|
||||||
|
@ -161,9 +163,11 @@ int main (int argc, char *argv[])
|
||||||
case 'a':
|
case 'a':
|
||||||
all++;
|
all++;
|
||||||
break;
|
break;
|
||||||
|
#ifdef HAVE_XML2
|
||||||
case 'x':
|
case 'x':
|
||||||
xml++;
|
xml++;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case 'v':
|
case 'v':
|
||||||
verbose++;
|
verbose++;
|
||||||
break;
|
break;
|
||||||
|
@ -286,7 +290,9 @@ void usage()
|
||||||
" -c, --civaddr=ID set CI-V address, decimal (for Icom rigs only)\n"
|
" -c, --civaddr=ID set CI-V address, decimal (for Icom rigs only)\n"
|
||||||
" -C, --set-conf=PARM=VAL set config parameters\n"
|
" -C, --set-conf=PARM=VAL set config parameters\n"
|
||||||
" -a, --all bypass mem_caps, apply to all fields of channel_t\n"
|
" -a, --all bypass mem_caps, apply to all fields of channel_t\n"
|
||||||
|
#ifdef HAVE_XML2
|
||||||
" -x, --xml use XML format instead of CSV\n"
|
" -x, --xml use XML format instead of CSV\n"
|
||||||
|
#endif
|
||||||
" -v, --verbose set verbose mode, cumulative\n"
|
" -v, --verbose set verbose mode, cumulative\n"
|
||||||
" -h, --help display this help and exit\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\n"
|
||||||
|
|
Ładowanie…
Reference in New Issue