Skip to content

Commit

Permalink
Show command line with -vvv
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanrueger committed Aug 21, 2024
1 parent da4de26 commit 50662bb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,10 +715,6 @@ int main(int argc, char *argv[]) {

atexit(cleanup_main);

msg_debug("$ "); // Record command line when debugging
for(int i = 0; i < argc; i++)
msg_debug("%s%c", argv[i], i == argc - 1? '\n': ' ');

updates = lcreat(NULL, 0);
if(updates == NULL) {
pmsg_error("cannot initialize updater list\n");
Expand Down Expand Up @@ -779,7 +775,6 @@ int main(int argc, char *argv[]) {

// Process command line arguments
while((ch = getopt(argc, argv, "?Ab:B:c:C:DeE:Fi:l:nNp:OP:qrtT:U:vVx:")) != -1) {

switch(ch) {
case 'b': // Override default programmer baud rate
baudrate = str_int(optarg, STR_INT32, &errstr);
Expand Down Expand Up @@ -931,9 +926,12 @@ int main(int argc, char *argv[]) {
exit(1);
break;
}

}

msg_debug("$ "); // Record command line when debugging
for(int i = 0; i < argc; i++)
msg_debug("%s%c", str_ccsharg(argv[i]), i == argc - 1? '\n': ' ');

if(logfile != NULL) {
FILE *newstderr = freopen(logfile, "w", stderr);

Expand Down

0 comments on commit 50662bb

Please sign in to comment.