in reply to how should a cli script return error codes?

Separate functionality from the interface. Split things into a module which provides the functions (add user, delete user, etc) and then you can use that from either a script or a web front end.

  • Comment on Re: how should a cli script return error codes?

Replies are listed 'Best First'.
Re^2: how should a cli script return error codes?
by leocharre (Priest) on May 16, 2006 at 19:24 UTC
    I'm concerned that would be overkill, this is for this one text file, for this one office need, very specific to the task.. you can see from the code it's really one big hack. :)