You can use NSUserDefaults to sniff your command line. So using something like this:NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; gridType = [defaults objectForKey: @"gridType"];Will have the value of "flarn" whether you do something like% defaults write com.borkware.BorkStitch gridType flarnor% ./build/Debug/BorkStitch.app/Contents/MacOS/BorkStitch -gridType flarn