Created
May 2, 2015 11:09
-
-
Save nicwest/5fcdbda19bd0dbd51a6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
def get_args(): | |
parser = argparse.ArgumentParser( | |
description='command line lookup for django objects') | |
parser.add_argument('query') | |
parser.add_argument('-e, --exact') | |
parser.add_argument('-v, --version') | |
parser.add_argument('-i, --index-only') | |
args = parser.parse_args() | |
return args | |
def main(): | |
print('pewpewpew lolol!') | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment