Skip to content

Instantly share code, notes, and snippets.

@nightpool
Created June 28, 2012 08:58
Show Gist options
  • Save nightpool/3010021 to your computer and use it in GitHub Desktop.
Save nightpool/3010021 to your computer and use it in GitHub Desktop.
-izzle
import argparse
parser = argparse.ArgumentParser(description='maizzle izzle ain\'tizzle beizzle lostizzle.\
Itizzle justizzle tookizzle itselfizzle onizzle aizzle breakizzle \
tizzle Newizzle Yorkizzle tizzle seeizzle thizzle bigizzle cityizzle')
parser.add_argument('izzleitup', default='fo shiz', help='You best be needin\' a lot of it.', nargs='*')
parser.add_argument('-d', '--debug', action='count', help='various debug shizzle')
args=parser.parse_args()
if(args.debug>0){
print args
}
ret=""
for i in args.izzleitup.split(" "):
if not i.endswith("izzle"):
ret+=i+"izzle "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment