Every other language uses either --v or -version ti check the version, but roc just uses version. Is there any reasoning to this? I know I'm asking something that might not be of any importance but I'm learning and hoping to contribute to this project for a long time, hence want to learn what, how and why of this language.
Thanks
We also support -V and --version, we provide many options because we want to make things easy for the user. Ideally they should be able to guess and it should work. Making --v
or -version
work as well would be nice but I'm not sure if that is easy to add with the CLI lib that we use.
yeah I think we could support those pretty easily by just manually checking the process args for them on startup, not even using clap
We also support -V and --version, we provide many options because we want to make things easy for the user
Ohh, got it. I don't know the reason behind those convention of --v and -version but I think its somewhat related to linux options convention. One more question, where can I raise an issue for the roc website? I don't see any copy button on codeblocks, these days its pretty common to have one, don't you think? If you think we should add it, then let me know I can work on this. Thanks
I don't see any copy button on codeblocks
We used to have this, but perhaps it broke?
The website is here: https://github.com/roc-lang/roc/tree/main/www
the most important thing with making a change like that is not to introduce any third party dependencies
just add the minimal amount of js necessary make it work
(and css)
Richard Feldman said:
just add the minimal amount of js necessary make it work
yeah sure. Minimal dependencies, got it. So shold I just create an issue and start working on it?
Make sure to start by trying to find the old copy functionality
ok understood, I'll also tag you on the issue. First I gotta install the prerequisites
Last updated: Jul 06 2025 at 12:14 UTC