Skip to content

Conversation

@Potracheno
Copy link

Should be useful description for people like me who found it in the code because of lack explanation in a help.

PS Thanks for great tool. Would be great if you give a brief description about how to use it as a library.

- Added time format description for "--since" option
@Potracheno Potracheno changed the title Update _cli.py DATETIME description in help Dec 7, 2022
@TheTechRobo
Copy link
Contributor

That's a very esoteric explanation, it'll just look like gibberish to new people in my opinion.

@JustAnotherArchivist
Copy link
Owner

Yeah, this is probably only helpful to people who have worked with strftime or an equivalent function before. But I guess it's as close as it gets to a common and compact date format ... format. Perhaps this is better suited for the (soon™-coming) documentation instead? It's also incomplete, by the way; --since accepts Unix timestamps as well.

@Potracheno
Copy link
Author

I've copy-pasted it exactly from 172 line in _cli.py. I guess we all strive to develop and use better software with at least clear explained help.
I use it this way snscrape --since $(date -d '-1 day' '+%Y-%m-%d'). I didn't know another way if not to find time format in the code. It's seems much more "gibberish to new people in my opinion." then any help, isn't it ?

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.

3 participants