Merge pull request #61 from mikegerber/fix/cli-required-options

🐛 Make required options required
pull/63/head
vahidrezanezhad 2 years ago committed by GitHub
commit a5d4bf00fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2160,9 +2160,12 @@ class textline_detector:
@click.command() @click.command()
@click.option('--image', '-i', help='image filename', type=click.Path(exists=True, dir_okay=False)) @click.option('--image', '-i', help='image filename',
@click.option('--out', '-o', help='directory to write output xml data', type=click.Path(exists=True, file_okay=False)) type=click.Path(exists=True, dir_okay=False), required=True)
@click.option('--model', '-m', help='directory of models', type=click.Path(exists=True, file_okay=False)) @click.option('--out', '-o', help='directory to write output xml data',
type=click.Path(exists=True, file_okay=False), required=True)
@click.option('--model', '-m', help='directory of models',
type=click.Path(exists=True, file_okay=False), required=True)
def main(image, out, model): def main(image, out, model):
possibles = globals() # XXX unused? possibles = globals() # XXX unused?
possibles.update(locals()) possibles.update(locals())

Loading…
Cancel
Save