Stream: beginners

Topic: Command to check version is not conventional


view this post on Zulip Sahil (Nov 15 2024 at 15:41):

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

view this post on Zulip Anton (Nov 15 2024 at 16:14):

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.

view this post on Zulip Richard Feldman (Nov 15 2024 at 16:34):

yeah I think we could support those pretty easily by just manually checking the process args for them on startup, not even using clap

view this post on Zulip Sahil (Nov 15 2024 at 16:42):

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

view this post on Zulip Anton (Nov 15 2024 at 16:43):

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

view this post on Zulip Richard Feldman (Nov 15 2024 at 16:44):

the most important thing with making a change like that is not to introduce any third party dependencies

view this post on Zulip Richard Feldman (Nov 15 2024 at 16:45):

just add the minimal amount of js necessary make it work

view this post on Zulip Richard Feldman (Nov 15 2024 at 16:45):

(and css)

view this post on Zulip Sahil (Nov 15 2024 at 16:46):

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?

view this post on Zulip Anton (Nov 15 2024 at 16:47):

Make sure to start by trying to find the old copy functionality

view this post on Zulip Sahil (Nov 15 2024 at 16:49):

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