Revision: 006c8183a071
Author: Janne Härkönen <[email protected]>
Date: Wed Jan 18 04:08:00 2012
Log: tidy: validate format option
http://code.google.com/p/robotframework/source/detail?r=006c8183a071
Modified:
/src/robot/tidy.py
=======================================
--- /src/robot/tidy.py Tue Jan 17 05:25:04 2012
+++ /src/robot/tidy.py Wed Jan 18 04:08:00 2012
@@ -147,6 +147,9 @@
raise DataError('Expected at least 1 input file')
if options['recursive'] and not os.path.isdir(sources[0]):
raise DataError("Invalid data source '%s'" % sources[0])
+ format = options['format']
+ if format and format not in ['txt', 'tsv', 'html']:
+ raise DataError("Invalid value for format option: %s" % format)
return options, sources