Skip to content

Instantly share code, notes, and snippets.

@Chris7
Created January 20, 2016 14:57
Show Gist options
  • Save Chris7/68dc60931ebe7d54dfa0 to your computer and use it in GitHub Desktop.
Save Chris7/68dc60931ebe7d54dfa0 to your computer and use it in GitHub Desktop.
import argparse
import sys
parser = argparse.ArgumentParser(description="Just do it without arguments!")
def main():
for i in range(10):
print(i)
if __name__ == "__main__":
sys.exit(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment