Changed command-line option "-r" to "--no-reset".
This commit is contained in:
parent
a563b6f2ea
commit
28923bf997
7
main.c
7
main.c
|
@ -274,7 +274,7 @@ static void usage(const char *progname)
|
||||||
" Set the supply voltage, in millivolts.\n"
|
" Set the supply voltage, in millivolts.\n"
|
||||||
" -n\n"
|
" -n\n"
|
||||||
" Do not read ~/.mspdebug on startup.\n"
|
" Do not read ~/.mspdebug on startup.\n"
|
||||||
" -r\n"
|
" --no-reset\n"
|
||||||
" Do not reset the device on startup.\n"
|
" Do not reset the device on startup.\n"
|
||||||
" --help\n"
|
" --help\n"
|
||||||
" Show this help text.\n"
|
" Show this help text.\n"
|
||||||
|
@ -359,10 +359,11 @@ static int parse_cmdline_args(int argc, char **argv,
|
||||||
{"fet-force-id", 1, 0, 'F'},
|
{"fet-force-id", 1, 0, 'F'},
|
||||||
{"usb-list", 0, 0, 'I'},
|
{"usb-list", 0, 0, 'I'},
|
||||||
{"version", 0, 0, 'V'},
|
{"version", 0, 0, 'V'},
|
||||||
|
{"no-reset", 0, 0, 'R'},
|
||||||
{NULL, 0, 0, 0}
|
{NULL, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
while ((opt = getopt_long(argc, argv, "d:jv:nU:qr",
|
while ((opt = getopt_long(argc, argv, "d:jv:nU:q",
|
||||||
longopts, NULL)) >= 0)
|
longopts, NULL)) >= 0)
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'q':
|
case 'q':
|
||||||
|
@ -417,7 +418,7 @@ static int parse_cmdline_args(int argc, char **argv,
|
||||||
args->no_rc = 1;
|
args->no_rc = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'r':
|
case 'R':
|
||||||
args->no_reset = 1;
|
args->no_reset = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ Specify a particular USB device to connect to. Without this option,
|
||||||
the first device of the appropriate type is opened.
|
the first device of the appropriate type is opened.
|
||||||
.IP "\-n"
|
.IP "\-n"
|
||||||
Do not process the startup file (~/.mspdebug).
|
Do not process the startup file (~/.mspdebug).
|
||||||
.IP "\-r"
|
.IP "\--no-reset"
|
||||||
Do not reset the device on startup.
|
Do not reset the device on startup.
|
||||||
.IP "\-\-help"
|
.IP "\-\-help"
|
||||||
Display a brief help message and exit.
|
Display a brief help message and exit.
|
||||||
|
|
Loading…
Reference in New Issue