#!/bin/sh
#
# List all switches of all mmh programs.
# Based on the source code.

for i in "$@" ; do
	echo "$i"
	sed -n '/^#define/d;/struct swit [a-z]*switches\[\]/,/^};/p' "$i"
	echo
done
