On Mon, Jan 05, 2009 at 11:29:14AM -0500, Anurag S. Maskey wrote: > > Michael wrote: >> >> I think the burden should be on why are interactive and non-interactive >> mode different. It seems to me like coding them to be different would >> actually be more work for little to no gain. Additionally we will have >> to make it clear in the documentation when they are different which >> could be confusing unless we have strong and clear reasons. >> > > walkprop is one command that must be exclusive to interactive mode. This > command waits for the user to enter a value and/or press "enter". > The other commands (verify, revert, exit) make more sense in interactive > mode, but doesn't hurt non-interactive modes if allowed.
My inclination would be to say that in general, commands are allowed in any mode. As Anurag points out, walkprop really does need to be the exception; it should be interactive-mode only. I could go either way on verify, revert, and exit; probably simpler to just allow them everywhere, as I think Anurag was suggesting above. > Another question related to non-interactive mode is whether nwamcfg exit at > the first sign of error when in a non-interactive mode disregarding the > remaining commands or continue with the remaining subcommands? I don't do a lot of scripting; but my expectation based on limited experience would be an exit on the first error. -renee
