Everything About ___
Live briefing

Everything about Getopt

C library function for parsing command-line options

getopt is a POSIX C function used to parse command-line options of the Unix/POSIX style on C. It is a part of the POSIX specification, and is universal to Unix-like systems. It is also the name of a Unix program for parsing command line arguments in shell scripts. Wikipedia →

đź§­ Start here: a 6-step reading path

  1. Read the overview: GetoptA 5-minute orientation
  2. Pick up a classic book: Learning the bash ShellThe most-reprinted book on the subject
  3. Read the landmark paper: GETOpt mesh smoothing: Putting GETMe in the framework of global optimization-based schemesCited 2 times
  4. Go sideways: Command-line argument parsingA closely related topic
  5. Go sideways: GetoptsA closely related topic

đź“– Definitions

No dictionary entry for this exact phrase.

🗂️ The subject at a glance

  1. History
  2. Usage
  3. Examples
  4. In shell
  5. In other languages

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

đź”— Related topics