-
Notifications
You must be signed in to change notification settings - Fork 25
cat flags implementation #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
I’m reviewing this PR. |
natyhl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All flags work how they are supposed to (tested on tester.txt), so the functionality delivered matches the original goals. The program successfully prints out when it A) can’t open a file that doesn’t exist, B) doesn’t recognize a flag name. Maybe just one suggestion I have is to add something like test_cat.sh, to not having to run tests manually. But otherwise good job on your project!
| -t (display non-printing characters (see the -v option), and display tab characters as ‘^I’) | ||
| -s (squeeze multiple blank lines) | ||
| -v (show non-printing characters visibly) | ||
| --help (prints out what cat can do and what it's flags does) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like that the –help flag is included. The description is sufficient and makes the implementation of new flags more clear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second half of the .md file is a little bit unorganized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is clean and easy to read. Maybe I would include a description at the top of the file
|
I will code review this |
|
Verification Testing
The program enters an endless input loop and prints back whatever is typed. There is no usage message or exit. This may confuse users. Same behavior for cat with flag but no file Code Walkthrough Formatting High Level Checks:
Code Checks:
|
|
Nice work! This is looking great. I am not a big fan of You may want to add a note somewhere that -n overrides -b, I guess there you have to make a call one way or another. Great job! |
This pull request was created to address Issue #1 cat which is addressing the lack of cat flags.
See /docs/catFlags.md for more documentation and test cases with expected outputs.