Date:2011-04-13 18:38:07 (8 years 9 months ago)
Author:Werner Almesberger
Commit:d263ffcb8b7ddd4504d08a5c9cb492cc786fa4bd
Message:atrf-path.c (usage): list common args only once, not in each synopsis

Files: tools/atrf-path/atrf-path.c (2 diffs)

Change Details

tools/atrf-path/atrf-path.c
164164static void usage(const char *name)
165165{
166166    fprintf(stderr,
167"usage: %s [-p power] [-t trim_tx [-t trim_rx]] driver_tx[:arg]\n"
168"%16s driver_rx[:arg] [sweeps [samples]]\n"
167"usage: %s common_args [sweeps [samples]]\n"
169168
170169#ifdef HAVE_GFX
171"%6s %s -g [-p power] [-t trim_tx [-t trim_rx]] driver_tx[:arg]\n"
172"%16s driver_rx[:arg] [[sweeps] samples]\n"
170"%6s %s -g common_args [[sweeps] samples]\n"
173171#endif
174172    "\n"
173" common args: [-p power] [-t trim_tx [-t trim_rx]] driver_tx[:arg]\n"
174" driver_rx[:arg]\n\n"
175175
176176#ifdef HAVE_GFX
177177" -g display results graphically\n"
...... 
179179" -p power transmit power, 0 to 15 (default %d)\n"
180180" -t trim trim capacitor, 0 to 15 (default %d)\n"
181181
182    , name, "",
182    , name,
183183#ifdef HAVE_GFX
184    "", name, "",
184    "", name,
185185#endif
186186    DEFAULT_POWER, DEFAULT_TRIM);
187187

Archive Download the corresponding diff file



interactive