Getopt

Jul 20, 2023

Replacement for getopt(1) that supports GNU-style long options

Rewrite of getopt1 with the following features

  • It can do anything that the GNU getopt3 routines can do.
  • It can cope with spaces and shell metacharacters within arguments.
  • It can parse long parameters.
  • It can shuffle parameters, so you can mix options and other parameters on the command-line.
  • It can be easily identified as an enhanced getopt1 from within shell scripts.
  • It can report parse errors as coming from the shell script.
  • It compiles cleanly with both libc-5 and glibc-2.


Checkout these related ports:
  • Zoneinfo - Updated timezone definitions
  • Zine - Simple and opinionated tool to build your own magazine
  • Ytree - DOS-XTREE(tm) look-a-like file manager
  • Yaunc - Yet another uptimes.net client
  • Xtypo - X-based keyboard trainer
  • Xtar - View and manipulate contents of a tar file
  • Xtail - Watches the growth of files or directories
  • Xplr - Hackable, minimal, fast TUI file explorer
  • Xosd - X11 on-screen-display program and library
  • Xless - X11-based viewer for text files
  • Xiphos - Bible interface utilizing the sword framework
  • Xgboost - Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT, GBM)
  • Xgas - The animated simulation of an ideal gas
  • Xfce4-wm-themes - Additional themes for xfwm4
  • Xfce4-weather-plugin - Weather plugin for the Xfce panel