ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/src/rt/rxfluxmtx.cpp
(Generate patch)

Comparing src/rt/rxfluxmtx.cpp (file contents):
Revision 2.4 by greg, Thu Oct 23 18:22:39 2025 UTC vs.
Revision 2.5 by greg, Thu Oct 23 23:34:34 2025 UTC

# Line 1459 | Line 1459 | main(int argc, char *argv[])
1459                                  break;
1460                          }
1461                          setformat(argv[a]+2);
1462                        myRCmanager.SetDataFormat(outfmt);
1462                          break;
1463                  case 'r':                       // recover flag
1464                          check_bool(2,recover);
# Line 1569 | Line 1568 | main(int argc, char *argv[])
1568                          myRCmanager.AddHeader(buf);
1569                  }
1570          }
1571 +                                        // set output format
1572 +        myRCmanager.SetDataFormat(outfmt);
1573                                          /* assign receiver modifiers */
1574          if (load_scene(argv[a], add_recv_object) < 0)
1575                  quit(1);
# Line 1682 | Line 1683 | main(int argc, char *argv[])
1683          report_progress((report_intvl > 0) | verby);
1684          quit(0);                        /* waits on children */
1685   userr:
1686 <        if (argv[a][0] == '-')
1686 >        if (a < argc && argv[a][0] == '-')
1687                  fprintf(stderr, "%s: unsupported/misplaced option '%s'\n", progname, argv[a]);
1688          fprintf(stderr, "Usage: %s [-W] [rcontrib options] { sender.rad | view | - } receiver.rad [-i system.oct] [system.rad ..]\n",
1689                                  progname);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)