converted args.py to a more functional representation
converted args.py to a more functional representation

This greatly simplifys the arg parsing routines and removes explicit but cluttering state.

asceth/sinan,asceth/sinan