Changes

Jump to: navigation, search

OPS435 Assignment 2 for Section A

72 bytes added, 12:05, 12 July 2021
Second Milestone (due August 2)
* You will be using a module in the standard library called <b>Argparse</b>. This will help handle more complex sets of options and arguments than simply using sys.argv.
** Refer to the argparse documentation to complete the <code>parse_command_args</code> function. At minimum, your assignment should handle the following options and arguments:
*** -h will print a usage message. This will automatically be created by argparse itself, you will not need to implement this. However, refer carefully to the sample output and ensure that your help message matches the required output.
*** -H will print file sizes in Human readable format. For example, 1024 bytes will be printed as 1K, 1024 kilobytes will be printed as 1M, and so on.
*** -l <number> will set the maximum length of the bar graph. The default should be 20 character. This option will require an option argument that is an integer.
*** Your script will also require one positional argument which contains the target directory for scanning. Use the following to test your code: <code>python3 checkA2.py -f -v TestArgs
== Minimum Viable Product ==

Navigation menu