mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-29 13:11:54 +02:00
atrf-path.c (usage): list common args only once, not in each synopsis
This commit is contained in:
parent
2c1cb715e4
commit
d263ffcb8b
@ -164,14 +164,14 @@ static void do_sweeps(const struct sweep *sweep, int sweeps)
|
|||||||
static void usage(const char *name)
|
static void usage(const char *name)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"usage: %s [-p power] [-t trim_tx [-t trim_rx]] driver_tx[:arg]\n"
|
"usage: %s common_args [sweeps [samples]]\n"
|
||||||
"%16s driver_rx[:arg] [sweeps [samples]]\n"
|
|
||||||
|
|
||||||
#ifdef HAVE_GFX
|
#ifdef HAVE_GFX
|
||||||
"%6s %s -g [-p power] [-t trim_tx [-t trim_rx]] driver_tx[:arg]\n"
|
"%6s %s -g common_args [[sweeps] samples]\n"
|
||||||
"%16s driver_rx[:arg] [[sweeps] samples]\n"
|
|
||||||
#endif
|
#endif
|
||||||
"\n"
|
"\n"
|
||||||
|
" common args: [-p power] [-t trim_tx [-t trim_rx]] driver_tx[:arg]\n"
|
||||||
|
" driver_rx[:arg]\n\n"
|
||||||
|
|
||||||
#ifdef HAVE_GFX
|
#ifdef HAVE_GFX
|
||||||
" -g display results graphically\n"
|
" -g display results graphically\n"
|
||||||
@ -179,9 +179,9 @@ static void usage(const char *name)
|
|||||||
" -p power transmit power, 0 to 15 (default %d)\n"
|
" -p power transmit power, 0 to 15 (default %d)\n"
|
||||||
" -t trim trim capacitor, 0 to 15 (default %d)\n"
|
" -t trim trim capacitor, 0 to 15 (default %d)\n"
|
||||||
|
|
||||||
, name, "",
|
, name,
|
||||||
#ifdef HAVE_GFX
|
#ifdef HAVE_GFX
|
||||||
"", name, "",
|
"", name,
|
||||||
#endif
|
#endif
|
||||||
DEFAULT_POWER, DEFAULT_TRIM);
|
DEFAULT_POWER, DEFAULT_TRIM);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user