Skip to content

Comments

mh/frbc make example take argument url and make it importable#89

Merged
MauriceHendrix merged 7 commits intomainfrom
mh/frbc_example_takes_url
Mar 12, 2025
Merged

mh/frbc make example take argument url and make it importable#89
MauriceHendrix merged 7 commits intomainfrom
mh/frbc_example_takes_url

Conversation

@MauriceHendrix
Copy link
Contributor

@MauriceHendrix MauriceHendrix commented Mar 12, 2025

Make frbc example take an (optional) url via command line and also make it importable by moving the "action" into an if __name__ == "__main__":

Make frbc example take an (optional) url via command line and also make it importable by moving the "action" into an if __name__ == "__main__":
@MauriceHendrix MauriceHendrix changed the title Update example_frbc_rm.py mh/frbc make example take argument url and make it importable Mar 12, 2025
@lfse-slafleur
Copy link
Member

@MauriceHendrix Perhaps a more descriptive approach would be to use argparse https://docs.python.org/3/library/argparse.html
This is a simple CLI utility for Python and will also generate help messages etc.

@MauriceHendrix
Copy link
Contributor Author

@MauriceHendrix Perhaps a more descriptive approach would be to use argparse https://docs.python.org/3/library/argparse.html This is a simple CLI utility for Python and will also generate help messages etc.

I know about argparse, was just hoping to avoid brining in another library for the sake of just 1 argument, but perhaps it's better (and you get the --help / -h as well)

@MauriceHendrix
Copy link
Contributor Author

@lfse-slafleur added argparse

@MauriceHendrix MauriceHendrix merged commit 54baabb into main Mar 12, 2025
19 checks passed
@MauriceHendrix MauriceHendrix deleted the mh/frbc_example_takes_url branch March 12, 2025 15:59
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.

2 participants