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

We should probably look at using [OptionParser](https://ruby-doc.org/stdlib-3.0.2/libdoc/optparse/rdoc/OptionParser.html) #48

Open
alterisian opened this issue Jun 2, 2023 · 1 comment

Comments

@alterisian
Copy link
Owner

          We should probably look at using [OptionParser](https://ruby-doc.org/stdlib-3.0.2/libdoc/optparse/rdoc/OptionParser.html)

Originally posted by @Animesh-Ghosh in #44 (comment)

@alterisian
Copy link
Owner Author

Documentation for: https://ruby-doc.org/stdlib-2.7.1/libdoc/optparse/rdoc/OptionParser.html#class-OptionParser-label-Complete+example

Our last update propagated the replacement of our 'magic' parameters with these named parameters for turning geolocation on/off, selecting the 'report' output type, and getting the twitter_api_key.

We got to the point where we were discussing what should happen if there's no twitter api key. A default value seemed not that useful. The discussion did conclude that the general running for new people should not be affected. i.e. hi = Helloworld.new, hi.say_hello, hi.output should all work for the adding of someone new.

alterisian added a commit that referenced this issue Jun 16, 2023
Still TODO fix exception when geolocation is false.

Co-authored-by: MaDDogx <[email protected]>
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

1 participant