Subversion Repositories SvarDOS

Rev

Rev 2038 | Rev 2040 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2038 Rev 2039
Line 163... Line 163...
163
const char OptUseASCII[2]  = { 'A', 'a' };  /* Use ASCII only */
163
const char OptUseASCII[2]  = { 'A', 'a' };  /* Use ASCII only */
164
const char OptVersion[2]   = { 'V', 'v' };  /* Version information */
164
const char OptVersion[2]   = { 'V', 'v' };  /* Version information */
165
const char OptSFNs[2]      = { 'S', 's' };  /* Shortnames only (disable LFN support) */
165
const char OptSFNs[2]      = { 'S', 's' };  /* Shortnames only (disable LFN support) */
166
const char OptPause[2]     = { 'P', 'p' };  /* Pause after each page (screenfull) */
166
const char OptPause[2]     = { 'P', 'p' };  /* Pause after each page (screenfull) */
167
const char OptDisplay[2]   = { 'D', 'd' };  /* modify Display settings */
167
const char OptDisplay[2]   = { 'D', 'd' };  /* modify Display settings */
168
const char OptSort[2]      = { 'O', 'o' };  /* sort Output */
-
 
169
 
168
 
170
 
169
 
171
/* Procedures */
170
/* Procedures */
172
 
171
 
173
 
172
 
Line 572... Line 571...
572
            break;
571
            break;
573
          default:
572
          default:
574
            showInvalidUsage(argv[i]);
573
            showInvalidUsage(argv[i]);
575
        }
574
        }
576
      }
575
      }
577
      else if ((argv[i][1] == OptSort[0]) || (argv[i][1] == OptSort[1]))
-
 
578
      {
-
 
579
#if 1  // not yet supported
-
 
580
        showInvalidUsage(argv[i]);
-
 
581
#else
-
 
582
        int reverse = (argv[i][3] == '-')?1:0;  /* invert sort if suffixed with - */
-
 
583
        switch (argv[i][2] & 0xDF)
-
 
584
        {
-
 
585
          case 'F' :       /*  /Of  sort by Filesize   */
-
 
586
            break;
-
 
587
          case 'N' :       /*  /On  sort by fileName   */
-
 
588
            break;
-
 
589
          case 'E' :       /*  /Oe  sort by Extension  */
-
 
590
            break;
-
 
591
          default:
-
 
592
            showInvalidUsage(argv[i]);
-
 
593
        }
-
 
594
#endif
-
 
595
      }
-
 
596
      else /* a 1 character option (or invalid) */
576
      else /* a 1 character option (or invalid) */
597
      {
577
      {
598
        if (argv[i][2] != '\0')
578
        if (argv[i][2] != '\0')
599
          showInvalidUsage(argv[i]);
579
          showInvalidUsage(argv[i]);
600
 
580