buat bima
public shellscript v1 · immutable#!/bin/bashdict(){echo $username}usage() {echo "-f buat nampilin"echo "-u username inisialisasi username"echo "-h showing help"} if [ $# == 0 ]; thenecho "use -h to show usage"fi while getopts "fu:h" opt; do case $opt in f) dict ;; u) username="$OPTARG" ;; h) usage ;; \?) echo "Invalid option: -$OPTARG" >&2 exit 1 ;; :) echo "Option -$OPTARG requires an argument." >&2 exit 1 ;; esacdone