I am writing a series of CLI tools that share the same parent command, similar to programs like git
.
program verb OPTIONS
One of the action verbs, install
, is designed to git clone
as many repositories as URLs are specified.
What is a robust and UNIX-like logical way to determine program success or failure?
- Good URLs > 0 → EXIT_SUCCESS
- Bad URLs == 0 → EXIT_SUCCESS
- Write number of valid URLs to standard output, then (1) or (2)
- Return the number of valid URLs.
- Other?