ZIO 2 and ZIO.cond examples for command-line arguments

The application shown at this URL shows how to use ZIO.cond in a for expression, like this:

_    <- ZIO.cond(
              args.size == 1 || args.size == 2,
              (),
              new Exception(
                "This app requires one argument to hash, and 2 to validate"
              )
            )

I an application I’m writing that uses command-line arguments, I also use ZIO.cond like this:

_ <- ZIO.cond(args.size >= 1, (), exit()).debug(s"ARGS = ${args.size}")