Skip to content

Instantly share code, notes, and snippets.

@yyolk
Created November 25, 2013 01:32
Show Gist options
  • Save yyolk/7634921 to your computer and use it in GitHub Desktop.
Save yyolk/7634921 to your computer and use it in GitHub Desktop.
usage: ./slug.py "My unformatted STriNG" outputs "my-unformatted-string"
#!/usr/bin/env python
from slugify import slugify
from sys import argv
print slugify(" ".join(argv[1:]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment