Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI parameters with Click #5

Open
s-celles opened this issue Feb 10, 2018 · 1 comment
Open

CLI parameters with Click #5

s-celles opened this issue Feb 10, 2018 · 1 comment

Comments

@s-celles
Copy link

s-celles commented Feb 10, 2018

Hello,

Instead of changing the pathFolder and destinationFolder variable in the file bloodvessels.py to point to the directory where your images are located (which can lead to inappropriate Git commits when submitting PR), you should use command line parser with default values for pathFolder and destinationFolder.

http://click.pocoo.org/5/ can help.

import click

@click.command()
@click.option('--path_folder', default='.....', help='Path folder.')
@click.option('--destination_folder', default='.....', help='Destination folder.')
def main(path_folder, destination_folder):
    print("Do it")


if __name__ == '__main__':
    main()
@utkarshmttl
Copy link
Collaborator

Thanks. Will fix this by either adding inbuilt python command line parser via argparse or through the method you so kindly suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants