Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 531 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 531 Bytes

bash-args

A cute little Bash library for blazing fast argument parsing

STATUS: IN DEVELOPMENT!

Summary

  • Uses only builtins
  • Uses no subshells
  • Simple API

Usage

barg.define_flags \
	one \
		'--alfa' '-a' '|bool|' 'desc' \
		'--bravo' '' 'i' 'desc' \
		'' '-charlie' 'i' 'desc' \
		END \
	subcommand \
		END

barg.parse_flags "$@"

Installation

Use Basalt, a Bash package manager, to add this project as a dependency

basalt add hyperupcall/bash-args