diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-02-20 18:37:08 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-02-20 18:37:08 +0100 |
commit | 19c1bbbdd1fbb865fc48224a4b3e1f1e6297d2f4 (patch) | |
tree | 15c6b247692556c03a9802fdd5945145d7ae096c /giscanner/docmain.py | |
parent | ad5c6abcbcd6c1cd26b9a714995c622f5dbe3b07 (diff) | |
download | gobject-introspection-19c1bbbdd1fbb865fc48224a4b3e1f1e6297d2f4.tar.gz |
g-ir-doc-tool: Change the -o option to receive a directory
Diffstat (limited to 'giscanner/docmain.py')
-rw-r--r-- | giscanner/docmain.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/giscanner/docmain.py b/giscanner/docmain.py index e3ef4ae4..1ca92a14 100644 --- a/giscanner/docmain.py +++ b/giscanner/docmain.py @@ -29,7 +29,7 @@ def doc_main(args): parser.add_option("-o", "--output", action="store", dest="output", - help="Filename to write output") + help="Directory to write output to") parser.add_option("-l", "--language", action="store", dest="language", default="Python", @@ -38,6 +38,8 @@ def doc_main(args): options, args = parser.parse_args(args) if not options.output: raise SystemExit("missing output parameter") + if not os.path.isdir(options.output): + raise SystemExit("wrong output parameter: %s", options.output) if len(args) < 2: raise SystemExit("Need an input GIR filename") |