Skip to content
Kate Ward edited this page Aug 24, 2023 · 15 revisions

Welcome to the shFlags wiki!

shFlags is a port of the Google gflags library for Unix shell. The code is written in a way to be as portable as possible to work across a wide array of Unix variants. It is also tested with shUnit2 to maintain code quality.

If you'd like to get started with shFlags, feel free to read the documentation.

Overview

shFlags is a Unix shell library to simplify the handling of command-line flags.

Tested Operating Systems

shFlags is tested on the following OSes using the Travis CI continuous integration framework.

Tested Shells

CommandDescription
ashAsh (BusyBox ash shell)
bashBASH (GNU Bourne Again SHell)
dashDASH
kshKorn Shell
mkshMirBSD Korn Shell
pdkshpdksh (the Public Domain Korn Shell)
shBourne Shell on Linux, or DASH shell on macOS.
zshZsh

Development and testing of shFlags was done by Kate Ward. See http://forestent.com/ for more info.

Downloading

Recent releases

Recent releases are available at https://github.com/kward/shflags/releases.

The most recent code is always available at https://github.com/kward/shflags.

All releases

The 1.0.x and 1.2.x release series are stable releases. The 1.1.x series (skipped) and 1.3.x release series are development releases.

ReleaseDate
1.3.0Aug 24 2023
1.2.3Jan 25 2018
1.2.2Oct 18 2017
1.2.1Aug 17 2017
1.2.0Jan 10 2016
1.0.3May 10 2009
1.0.2Nov 17 2008
1.0.1Jul 11 2008
1.0.0Jun 18 2008

Miscellaneous

Licensing

shFlags is licensed under Apache v2.0. The contents and copyright of this site and all provided source code are owned by Kate Ward.

Full disclosure

Although I am currently an employee of Google Switzerland, the shflags port of gflags is not meant to reflect in any way on the work I do for Google, nor is this a work product of Google. This software is not supported or endorsed by Google, and they should not be contacted for any problems you encounter with this product.

Clone this wiki locally