Maybe in this case it should be named --required or something more appropriate, because when using flagOnly, you don't specify a value