Skip to content

Commit 591322e

Browse files
committed
removed --format from docs.py since there is only one format
1 parent e051a01 commit 591322e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

scripts/python/docs.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -641,19 +641,11 @@ def generate_rst(self, input_dir, output_dir):
641641

642642
def main(self, args):
643643
parser = OptionParser(prog="")
644-
parser.add_option("-f", "--format", help="Generate format")
645644
parser.add_option("-o", "--output", help="write report to FILE(s)")
646645
parser.add_option("-i", "--input", help="Reference folder")
647646
(options, args) = parser.parse_args(args=args)
648647

649-
if not options.format:
650-
options.format = "rst"
651-
if options.format in ["rst"]:
652-
self.generate_rst(options.input, options.output)
653-
else:
654-
log("Help%s"%parser.print_help())
655-
log("Invalid format: %s"%options.format)
656-
return
648+
self.generate_rst(options.input, options.output)
657649

658650
def __main__(args):
659651
global helper

0 commit comments

Comments
 (0)