r7710: new command line handling code for ldb