public static String getByName(String name) {
        String value = System.getProperty(name);
        if (value == null) {
            value = System.getenv(name);
        }
        return value;
    }
Gets a system property or environment variable by name, in that order.

@param name Variable to get.
@return Returns the found system property or environment variable or null.
smithy-cli/src/main/java/software/amazon/smithy/cli/EnvironmentVariable.java