I have a Sinatra program that I am creating, and I would like to be able to pass in command line arguments to this app when I launch it. The problem that I have is that I’m not sure how to do this. I’ve tried Trollop and looked at OptParser. Trollop doesn’t appear to work with Sinatra because OptParser seems to be “default” parser with Sinatra. Is this true? If so, how can I customize the types of arguments accepted when I launch my app?
I have a Sinatra program that I am creating, and I would like to
Share
Now when I visit
localhost:4567(where Thin hosts my sinatra app), I see a page that says hello.