Skip to content
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

Add command line arguments #17

Open
benrady-aq opened this issue Jun 20, 2024 · 3 comments
Open

Add command line arguments #17

benrady-aq opened this issue Jun 20, 2024 · 3 comments

Comments

@benrady-aq
Copy link
Collaborator

No description provided.

@bbqroastcheese
Copy link
Contributor

What are command line arguments? Are they like functions or extra information?

@benrady-aq
Copy link
Collaborator Author

benrady-aq commented Jun 25, 2024

When you start a program from a terminal, you can pass additional values (as strings) to the program, sometimes called arguments. In Python, these are accessible from the sys.argv property

@apmorton
Copy link
Contributor

You may also consider using https://docs.python.org/3/library/argparse.html or adding https://click.palletsprojects.com/en/8.1.x/ as a library to handle command line arguments.

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

No branches or pull requests

3 participants