Skip to content

Add file input option to wc command - #56

Merged
codepiyusss merged 1 commit into
codepiyusss:mainfrom
vipulbassi2003:feature/wc-file-option
Oct 21, 2026
Merged

codepiyusss merged 1 commit into
codepiyusss:mainfrom
vipulbassi2003:feature/wc-file-option

Conversation

@vipulbassi2003

Copy link
Copy Markdown

Summary

  • Add a --file option to the wc command.
  • Read text from a UTF-8 file and count words, lines, and characters.
  • Display a clear error when the file cannot be read.
  • Add tests for file input and missing files.

Testing

  • python -m pytest -v
  • 25 passed, 4 xfailed

Closes #19

@codepiyusss
codepiyusss merged commit 8654996 into codepiyusss:main Oct 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: add --file option to the wc command

2 participants