Commits

Bob Garwood authored 4a1d6ae3fc1
--rcdir is now --cachedir; viewertool will also check ctsys for cachedir value to use if not specified on the command line

src/code/display/apps/casaviewer/casaviewer.cc

Modified
691 691 }
692 692 } else if ( ! strcmp(argv[x],"--daemon") ) {
693 693 daemon = true;
694 694 } else if ( ! strcmp(argv[x],"--persist") ) {
695 695 persistent = true;
696 696 } else if ( ! strcmp(argv[x],"--casapy") ) {
697 697 casapy_start = true;
698 698 } else if ( ! strcmp(argv[x],"--dbus") ) {
699 699 with_dbus = true;
700 700 #endif
701 - } else if ( ! strncmp(argv[x],"--rcdir",7) ) {
701 + } else if ( ! strncmp(argv[x],"--cachedir",7) ) {
702 + // setrcDir sets the path to the viewer's rc file, keep that method name the same
703 + // even while the parameter changes from --rcdir to --cachedir, this name is purely internal
704 + // and is a good indication as to how it's being used here
705 + // the external parameter name was changed because of wider monolithic casa considerations
702 706 if ( argv[x][7] == '=' ) {
703 707 viewer::setrcDir(&argv[x][8]);
704 708 } else if ( x + 1 < argc ) {
705 709 viewer::setrcDir(argv[++x]);
706 710 }
707 711 } else if ( ! strncmp(argv[x],"--casalogfile",13) ) {
708 712 if ( argv[x][13] == '=' ) {
709 713 char *file = strdup( &argv[x][14] );
710 714 if ( strlen(file) <= 0 ) {
711 715 free( file );

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut