Created
April 11, 2018 17:03
-
-
Save beardedfoo/f6342ee2b9771f613f380cafb530b092 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env python2.7 | |
"""An example CLI program in python""" | |
import argparse | |
import os | |
import sys | |
def parse_args(): | |
p = argparse.ArgumentParser() | |
return p.parse_args() | |
def cli_entry(args): | |
return os.EX_OK | |
if __name__ == '__main__': | |
args = parse_args() | |
sys.exit(cli_entry(args)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment