#!/bin/bash set -e # This script runs the .NET CLI, invoking the what's new global tool # $1 is the # $2 is the # $3 is the savedir while getopts o:r:s: option do case "${option}" in o) OWNER=${OPTARG};; r) REPO=${OPTARG};; s) SAVEDIR=${OPTARG};; esac done dotnet whatsnew \ --owner $OWNER \ --repo $REPO \ --savedir $SAVEDIR