-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Output name of the program for --version #32844
base: master
Are you sure you want to change the base?
Conversation
'The GNU standard --version option should direct the program to print information about its name, version' So added a name of program to version displaye along with shotr option \`-V'.
Someone should have pointed this out ca. 2010, before people wrote (I expect) lots of scripts that parse the output of the
Or something similar in a shell other than POSIX. |
Ca. 2010 i didn't know about this program. I'm sure that 95% of present users didn't know it either.
I'm certain there ate lots of Scots that use ytdl
But none of them, ok 99.(9)% of them don't paste version number.
As above. I bet here and now that no one parses version number.
Sure.
In non POSIX is not posixble. -- I will leave it, if I can, and wait for objections or consent. |
Fair enough. There are other ways in which the command-line syntax doesn't fully behave as GNU-ishly as one would expect, basically because of the Python command line parsing module used. Maybe someone will find a way to fix this and then we could have a The same issue still applies in yt-dlp: $ ~/Downloads/yt-dlp-2024.07.02 --version
2024.07.02
$ |
I try to reason it this way - it makes sense to announce program name when asking for a version. Cause version of what? It's especially true here, where date is used as a version. What do you think when you see this thing: `2024-01-01', cause I see a date. What that date refers to is not known.
Anecdotal evidence. Hundreds of other programs do include their name in version print.
I quoted GNU as the option is `--version' brings to mind GNU coding standards rather than any other 'code of conduct'. If it was put in a function that would do it, would it be better?
and in help:
Where shall I put this function, in `version.py' or `utils.py' or somewhere else? |
Please follow the guide below
x
into all the boxes [ ] relevant to your pull request (like that [x])Before submitting a pull request make sure you have:
In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:
What is the purpose of your pull request?
Description of your pull request and other information
Explanation of your pull request in arbitrary form goes here. Please make sure the description explains the purpose and effect of your pull request and is worded well enough to be understood. Provide as much context and examples as possible.
'The GNU standard --version option should direct the program to print information about its name, version' So added a name of program to version displaye along with shotr option `-V'.