(feat) parses flags [fixes #2]