You are writing a script that requires parsing command-line options with both short and long formats. Which command would you likely use?

  • getopts
  • getopt
  • parseargs
  • getoptlong
You would likely use the getopt command to parse command-line options with both short and long formats. getopt is a versatile command for handling command-line arguments and options in shell scripts, allowing you to specify both short and long options.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *