public static void main(String... args) {
        try {
            int exitCode = SmithyCli.create().run(args);
            // Only exit with a non-zero status on error since 0 is the default exit code.
            if (exitCode != 0) {
                System.exit(exitCode);
            }
        } catch (CliError e) {
            System.exit(e.code);
        } catch (Exception e) {
            System.exit(1);
        }
    }
Executes the CLI.

@param args Arguments to parse and execute.
smithy-cli/src/main/java/software/amazon/smithy/cli/SmithyCli.java