Copied argp code from zcount.