1 |
>>>>> On Thu, 13 Sep 2012, Mike Frysinger wrote: |
2 |
|
3 |
>> Maybe it's better to add a --{save,restore} option pair: |
4 |
>> |
5 |
>> addwrite --save /foo/bar |
6 |
>> # some commands writing to /foo/bar here |
7 |
>> addwrite --restore # restore last saved state |
8 |
>> |
9 |
>> or --{push,pop} to allow for nested calls, but maybe that would be |
10 |
>> overkill. |
11 |
|
12 |
> not sure how your --save/--restore isn't a --push/--pop already |
13 |
|
14 |
--save/--restore would keep one saved state (which would be |
15 |
overwritten with the next --save), whereas --push/--pop would maintain |
16 |
a stack. |
17 |
|
18 |
Ulrich |