wren-cli icon indicating copy to clipboard operation
wren-cli copied to clipboard

[RFC] Is the binary named `wren` or `wren_cli`

Open joshgoebel opened this issue 4 years ago • 7 comments
trafficstars

In the source/help:

    printf("Usage: wren [file] [arguments...]\n");
    // ...
    printf("wren %s\n", WREN_VERSION_STRING);

Are we wren or wren_cli. I'd prefer wren to be honest (like node)... can we agree on which it is though so this can be made consistent?

joshgoebel avatar Apr 26 '21 20:04 joshgoebel

I think the name should be wren_cli since wren is the language and wren_cli is a project that embeds the language. Naming wren_cli just wren can cause confusions. I think one approach could be using wren_cli and then a simple symbolic link to have a wren executable for those who want to type less 👍

clsource avatar Apr 27 '21 03:04 clsource

Naming wren_cli just wren can cause confusions.

How so? If there is no wren binary and the only way to run Wren from console is the CLI, then I'm not seeing the confusion.

My argument (since you made one) is that "Wren" is the language and wren is the tool that executes Wren scripts. Much like Node.js is the language and node is the tool that executes Node.js programs. If this was Linux package-style naming I think you'd have wren and wren-lib perhaps?

Anyways, I don't want to die on this hill, but _cli is just useless clutter in my mind. Almost every command line tool could be suffixed with _cli, that's literally what they all are - and it adds no value. Ultimately though I think it boils down to how the two projects are related to each other and "what is Wren".

joshgoebel avatar Apr 27 '21 03:04 joshgoebel

To be honest I'm fine with either way of using the CLI 👍 I will accept whichever name is settled for 💯

clsource avatar Apr 27 '21 04:04 clsource

What about examining the executable name from the first command line argument?

ChayimFriedman2 avatar Apr 27 '21 07:04 ChayimFriedman2

imagen

clsource avatar Apr 27 '21 07:04 clsource

???

ChayimFriedman2 avatar Apr 27 '21 07:04 ChayimFriedman2

What about examining the executable name from the first command line argument?

Aaah you mean getting it from arg[0] Sorry I just though other thing like the first argument like --help

clsource avatar Apr 28 '21 20:04 clsource