Share AppName validation between CLIs

good catch!