Guest User

Untitled

a guest
Jul 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import click
  2.  
  3. def transform_data(paths): ...
  4. def save_result(data, path): ...
  5.  
  6. @click.command()
  7. @click.argument('output-path') # first argument
  8. @click.argument('input-paths', nargs=-1) # all other arguments
  9. def cli(output_path, input_paths):
  10. result = transform_data(paths=input_paths)
  11. save_result(data=result, path=output_path)
  12.  
  13. if __name__ == '__main__':
  14. cli()
Add Comment
Please, Sign In to add comment