#!/bin/bash

# This is a urfave-style executable, so it should parse the description from the name

usage() {
    cat <<END
NAME:
   teleport-urfave-nodesc

USAGE:
   twitch-urfave-nodesc [global options] command [command options] [arguments...]

VERSION:
   2.4.4

COMMANDS:
     enable   Enable the Urfave
     disable  Disable the Urfave
     status   Show the current Urfave configuration status
     login    Manually log into the Urfave
     logout   Log out from the Urfave
     update   Update the Urfave configuration to include recent changes
     config   View and set local Urfave configuration parameters
     fix      Fix the Urfave configuration, if broken
     reset    Disable the Urfave and reset all configuration to mains
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --yes, -y      Assume a "yes" answer to all prompts
   --help, -h     show help
   --version, -v  print the version
END
    exit 0
}

main() {
    echo "You ran twitch-urfave-nodesc"
    exit 0
}

while getopts ":h" opt; do
    case ${opt} in
    h )
        usage
        ;;
    \? )
        echo "Invalid Option: -$OPTARG" 1>&2
        exit 1
        ;;
    : )
        echo "Invalid Option: -$OPTARG requires an argument" 1>&2
        exit 1
        ;;
    esac
done
shift $((OPTIND -1))

main
