vrok / have

The Have Programming Language
http://havelang.org
BSD 2-Clause "Simplified" License
272 stars 11 forks source link

-h flag usage #7

Closed smithjessk closed 7 years ago

smithjessk commented 7 years ago

Commit: 20fc865cab7bcda1d49de64c4286b600680cd4f5

Great work! Loving some of the ideas in Have.

When the have executable is passed the -h flag, it prints out a usage statement, e.g.:

[jess@localhost ~]$ have -h
Usage of have:
[jess@localhost ~]$ 

This is caused by the call to flag.Parse(). With the call removed, the executable continues on properly (i.e., printing "Arguments missing").

I propose that the -h flag list out the arguments that can be passed to have, e.g. trans and run, along with a small explanation for each argument. If you like this design, I would be happy to implement it myself.

vrok commented 7 years ago

Makes sense, go ahead if you want