add b6_cmd and regroup with flags in cmdline.h
simpler API to traverse a registry