I'm writing an Ada program that is supposed to do case conversion for alphabetic characters. The program uses 1, 2 or 3 command line arguments. I pretty much have the thing written up, but I have no clue as to how to how to do arguments. the command line arguments are to:
- A single character specifying whether uppercase conversion or lowercase conversion is to be applied to the input. 'U' or 'u' signifies uppercase conversion; 'L' or 'l' specifies lowercase conversion. This parameter is required for the program to run.
- (optional) The name of the file to be used for input to the uppercase/lowercase conversion. If this parameter is not specified, the program must read from standard input.
- (optional and only used if the third command line parameter is also provided) The name of the file to be used for output from the encryption or decryption process. If this parameter is not specified, the program must write to standard output.
Any help?