-
-
Notifications
You must be signed in to change notification settings - Fork 27
Glasgow | 25-SDC-July | Sheetal Kharab | Sprint 4 | implement-shell tools in python #153
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?
Glasgow | 25-SDC-July | Sheetal Kharab | Sprint 4 | implement-shell tools in python #153
Conversation
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.
Good work so far on this. I've left some comments to help
# set argument parser | ||
parser = argparse.ArgumentParser(description="Python implementation of cat command") | ||
|
||
# to number all lines |
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.
If these comments were not here, would it be obvious what these lines of code were doing?
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.
What is the purpose of the -1 argument here? Can you see any issues regarding your implementation with -1?
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.
There are a couple of issues here:
- Think about all the combinations of arguments a user might use - do you spot any issues?
- In your code there seems to be some duplication. Can you find where it is and develop a solution?
Learners, PR Template
Self checklist
Changelist
code for ls, wc, cat
Questions
Ask any questions you have for your reviewer.