UCL / UCL/rsd-engineeringcourse

Argparse page

Open
#95 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

2018-19
Dominant language
Python
Stars
133
Forks
111
PR merge metrics
No merged PRs in 30d

Description

  1. We need to explain the line: if __name__ == "__main__":

  2. what does this mean? action="store_true"

  3. (may be answer to question 2.) How do we tell it when it should expect a value after an argument and when it shouldn't? e.g. -t needs a value afterwards but -p doesn't.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Argparse page in the course materials and review its existing examples. Update the page to address the main guard, action="store_true", and how -t and -p differ in whether they expect values; done means all three questions are answered with clear examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.