added getopt() to demo, next is to isolate it
messing with git CLI