Changeset d9326ad for tests


Ignore:
Timestamp:
Jul 6, 2020, 4:45:15 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
82bbaf4
Parents:
2ed33710
Message:

add comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/copyfile.cfa

    r2ed33710 rd9326ad  
    1010// Created On       : Fri Jun 19 13:44:05 2020
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jun 19 17:58:03 2020
    13 // Update Count     : 4
     12// Last Modified On : Sun Jul  5 11:27:43 2020
     13// Update Count     : 5
    1414//
    1515
     
    2222
    2323        try {
    24                 choose ( argc ) {
     24                choose ( argc ) {                                                               // terminate if command-line errors
    2525                  case 2, 3:
    2626                        open( in, argv[1] );                                            // open input file first as output creates file
    2727                        if ( argc == 3 ) open( out, argv[2] );          // do not create output unless input opens
    2828                  case 1: ;                                                                             // use default files
    29                   default:
     29                  default:                                                                              // wrong number of options
    3030                        exit | "Usage" | argv[0] | "[ input-file (default stdin) [ output-file (default stdout) ] ]";
    3131                } // choose
Note: See TracChangeset for help on using the changeset viewer.