allow float for back_offset option

This commit is contained in:
Paul Molodowitch 2013-12-29 08:52:54 -08:00
parent aa3f18f294
commit 1ea98aab42

View File

@ -589,7 +589,7 @@ class DominionTabs:
@staticmethod @staticmethod
def parse_opts(argstring): def parse_opts(argstring):
parser = OptionParser() parser = OptionParser()
parser.add_option("--back_offset",type="int",dest="back_offset",default=0, parser.add_option("--back_offset",type="float",dest="back_offset",default=0,
help="Points to offset the back page to the right; needed for some printers") help="Points to offset the back page to the right; needed for some printers")
parser.add_option("--orientation",type="choice",choices=["horizontal","vertical"],dest="orientation",default="horizontal", parser.add_option("--orientation",type="choice",choices=["horizontal","vertical"],dest="orientation",default="horizontal",
help="horizontal or vertical, default:horizontal") help="horizontal or vertical, default:horizontal")