Hejsil / zig-clap

Command line argument parsing library
MIT License
939 stars 67 forks source link

Best naming of the Argument struct. #9

Closed Hejsil closed 6 years ago

Hejsil commented 6 years ago

This is an issue because naming is important.

In Zig's self-hosted compiler, they are called Flag. I call them Argument, but they could be called Option too.

I thought a little about it, and if we treat programs like functions then we could apply the same logic. As far as I know, functions have parameters and are called with arguments. Aka the declaration is parameters and the values are arguments, so maybe we should call the struct Parameter?

Idk. I'll think about this for a while.