This looks pretty clean, I like it.
Doesn't this need to be before the first use of err.h? It should be before the above if() because of the xo_warn()
But this is needed only when we are in capability mode which we enter below, so if xo_warn will be called it will still have access to the NLS.
We handle now empty argc and argv.
should sort alphabetically before stat