Ask HN: Unix Utility Development Conventions
6 points| rayascott | 6 years ago
What is the correct way, or convention, to specify and parse command line arguments, for example? How should I package my tool? What is the best way to handle deployment of the various aspects of my tool, for example the man page, or configuration settings? How should I handle the upgrade process?
Smaller details, like should I store my source code in the repo with execute permissions turned on, or should I only turn on those permissions when the files are deployed on the user's machine? What group should I set as the default for my executable files?
Does anyone know any great resources out there that address these issues?
jolmg|6 years ago
I often use variations of this pattern:
There are standard guidelines[1][2].[1] https://www.gnu.org/prep/standards/standards.html#Command_00...
[2] https://cli-guide.readthedocs.io/en/latest/design/guidelines...
tannhaeuser|6 years ago
http://catb.org/~esr/writings/taoup/html/ch10s05.html
rayascott|6 years ago