Implement flags option form of cli