Commit 559e273a authored by Adam Brenecki's avatar Adam Brenecki

Add wordjoin script

parent 8636534b
#!/usr/bin/env pyscript click --
import click
@click.command()
@click.argument("input_str")
@click.option('--mode', type=click.Choice(('twitter', 'every')), default='every')
def main(input_str, mode):
if mode == 'twitter':
print(input_str.replace('@', '@\u2060').replace('#', '#\u2060').replace('$', '$\u2060'))
if mode == 'every':
print('\u2060'.join(input_str))
if __name__ == "__main__":
main()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment