@zedshaw
Since the video for ex8 is not published I have a questions regarding the provided solutions to ex8.
-
As it’s written with sys.argv and not argparse, I understand that both delim and fields arguments are mandatory but without flags. Is it possible to add flags in case of sys.argv?
-
In ex08_cut/cut.py there’s no argument for the file name but there is
line = input()
, what’s the correct input that should be given there? -
Why do you raise IndexError in the end of the file?
-
When I run ex08_cut/cut.py then I get empty response, what am I doing wrong?
-
I also get an empty response when run the second version ex08_cut/cut_fp.py.
-
If I run it with 3 arguments like the unix
cut
command, I getValueError: too many values to unpack (expected 3)
so obviously the data-file argument is too much, but how can i feed the data argument to the command in this case?
Thank you for the help!