Feature #30
Verbose and dry-run
| Status: | New | Start: | 07/25/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | 1.5 | |||
Description
Implement the following two options:
--verbose,-vto dump all commands that a particular module executes to stderr--dry-run,-nto not really execute any destructive commands, just dump them for examination to stderr (implies--verbose)
The (1) is relatively easy to implement, (2) needs further consideration. Most probably we'll have to separate all our command calls as "read-only" and "read-write": "read-only" commands would be executed always, "read-write" commands won't be executed in dry-run mode, thus whenever we call them we can't be sure that they are executed. May be some operations couldn't be done completely at all in dry-run mode: then we should do our best to dump as much command as we can and politely explaining that more couldn't be done in dry-run mode to the user.