[c-c schema] devtools: the output file for cw-ctl schema is not supposed to exist stable
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 06 Jul 2012 09:01:42 +0200
branchstable
changeset 8451 49e965bba1ec
parent 8447 4fb20c09017a
child 8452 1ad42383a9ec
[c-c schema] devtools: the output file for cw-ctl schema is not supposed to exist When using the 'file' type, logilab-common errors out if the file doesn't exist. Which, if the option refers to an output file, is not so useful. Use 'string' instead.
devtools/devctl.py
--- a/devtools/devctl.py	Fri Jul 06 08:59:28 2012 +0200
+++ b/devtools/devctl.py	Fri Jul 06 09:01:42 2012 +0200
@@ -726,7 +726,7 @@
     min_args = max_args = 1
     options = [
         ('output-file',
-         {'type':'file', 'default': None,
+         {'type':'string', 'default': None,
           'metavar': '<file>', 'short':'o', 'help':'output image file',
           'input':False,
           }),