jarun / ddgr

:duck: DuckDuckGo from the terminal
GNU General Public License v3.0
2.94k stars 139 forks source link

Add --exit option #90

Closed paper42 closed 5 years ago

paper42 commented 5 years ago

Add option to exit after first search.

jarun commented 5 years ago

We already have it:

--np, --noprompt      perform search and exit, do not prompt
paper42 commented 5 years ago

Yes, but it does not offer interactive prompt if I remember correctly.

jarun commented 5 years ago

does not offer interactive prompt

If you have the interactive prompt you can press q and exit. It seems like a overkill to have an option just for that.

paper42 commented 5 years ago

I made this change for usage in my script. So it's up to you whether to merge it.

jarun commented 5 years ago

Ahh OK, I get it. I would request you to have a fork. I don't see ddgr going through too many changes in the future so it wouldn't be very difficult to merge.