Bugswriter / tuxi

Tuxi is a cli assistant. Get answers of your questions instantly.
GNU General Public License v3.0
1.33k stars 73 forks source link

--debug option which return html of page #74

Closed Bugswriter closed 3 years ago

Bugswriter commented 3 years ago

Ok, I think So need to hide this --debug option in our code .. so We can do

tuxi --debug define gambling > tmp.html

This way we can look at the page we are getting .. in browser to know what is happening?

colonvirus commented 3 years ago

Yep that's cool But getops doesnt support flags, so -d will do

Bugswriter commented 3 years ago

--debug would be cool but . that's not an issue.

colonvirus commented 3 years ago

where should the logs go?

Genghius commented 3 years ago

This Issue can be closed now.

Genghius commented 3 years ago

@Bugswriter ^^^

Bugswriter commented 3 years ago

No .. its not working correctly .. The html debug option generate is not actually html .. its utf 8 text. Browser open the text.

colonvirus commented 3 years ago

Firefox opened the html for me

Bugswriter commented 3 years ago

strange I also used firefox. I ll test again soon. lets keep this issue open

BikramKumar6928 commented 3 years ago

@Bugswriter maybe use this answer to add --debug flag. This allows you to add long flags while getting options. Just a suggestion.

https://stackoverflow.com/a/7069755

Bugswriter commented 3 years ago

no need since we are not going to show --debug in your -h help. and It's just for devs. I guess Why bother. We will use -d