private static CowFace getCowFace ( final CommandLine commandLine ) { CowFace cowFace ; cowFace = new CowFace ( ) ; if ( commandLine . hasOption ( CowsayCli . Opt . EYES . toString ( ) ) ) { cowFace . setEyes ( commandLine . getOptionValue ( CowsayCli . Opt . EYES . toString ( ) ) ) ; } if ( commandLine . hasOption ( CowsayCli . Opt . TONGUE . toString ( ) ) ) { cowFace . setTongue ( commandLine . getOptionValue ( CowsayCli . Opt . TONGUE . toString ( ) ) ) ; } return cowFace ; }
Get a regular cow face optionally formatted with custom eyes and tongue from the command line .