Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Because he is lazy :)

I use CLI a lot.. Im lazy too. But pretty much 90% of my tools implement --help because some tools are used not that often.

If I ever try to use tool that does not have nice and clean --help output I curse :)



It takes like 2 seconds in almost any language to do it too, just do it when you start your code, youll thank yourself later.

I even have a sort of template for shell scripts, if any arg will be on the commandline, it gets implemented.

For python (using argparse obviously), in my current project i built a toml file that handles the args. It allowed me to do more, like generating code blocks for js for the web frontend, documentation for both the cli and remote api, etc. Actually, now that I think about it, i might chunk that out to its own library.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: