Changes in tests/copyfile.cfa [a8a3485:d9326ad]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/copyfile.cfa
ra8a3485 rd9326ad 10 10 // Created On : Fri Jun 19 13:44:05 2020 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jun 19 17:58:03 202013 // Update Count : 412 // Last Modified On : Sun Jul 5 11:27:43 2020 13 // Update Count : 5 14 14 // 15 15 … … 22 22 23 23 try { 24 choose ( argc ) { 24 choose ( argc ) { // terminate if command-line errors 25 25 case 2, 3: 26 26 open( in, argv[1] ); // open input file first as output creates file 27 27 if ( argc == 3 ) open( out, argv[2] ); // do not create output unless input opens 28 28 case 1: ; // use default files 29 default: 29 default: // wrong number of options 30 30 exit | "Usage" | argv[0] | "[ input-file (default stdin) [ output-file (default stdout) ] ]"; 31 31 } // choose
Note: See TracChangeset
for help on using the changeset viewer.