Create a simple command line interpreter. For this project, assume the commands effect only files.
The commands may contain options and file names.
The commands will not do anything. The purpose of this project to Create an interpreter.
At a minimum, include the commands to add, delete, copy, and replace.
Look at the Python module argparse. Can it do the "heavy lifting" for your project?
Step 0. start the command line interpreter
Step 1. prompt the users for a command
Step 2. if nothing (empty string) is entered exit the command line interpreter
Step 3. parse and validate the command parameters
3a. parse the command and validate the command parameters
3b. if there is an error, display an error message (files exist?)
3c. go to step 1
Step 4. display the command parameters
Step 5. go to step 1
CMD -a -b -c file-name file-name ... cmd -ab -c file-name ... cmd -abc +d file-name
Notes:
Create a file (module?) containing data and/or data structures that is read
(imported?) by the
interpreter at startup that defines the commands?
(semi-portable command line interpreter?)