|||

Boilerplate

def main():
  pass


if __name__ == "__main__":
  try:
    main()
  except(Exception):
    raise
  else:
    pass
  finally:
    pass

argparse

import argparse

argparser = argparse.ArgumentParser(description='Arguments that may be parsed.',epilog="The Epilog")
argparser.add_argument('--test',action='store_true',help='Simulate the Run')
argparser.add_argument('--dir','-d',type=str,required=True,help='Required variable "dir" with the following text as its value. i.e. --dir /test/123/ ')
argparser.add_argument('--optionaldefault','-o',default="the default value",type=str,help='Creates a variable "optionaldefault"  ')
argparser.add_argument('--integer','-i',default=0,type=int,help='Creates a variable "integer" with the value 0 if nothing is specified.')
args = argparser.parse_args()


def main(object args):
  pass


if __name__ == "__main__":
  try:
    main(args)
  except(Exception):
    raise
  else:
    pass
  finally:
    pass
Up next Deploy to a Remote Docker registry I needed to spin up services on a remote docker instance; Configure the services and have them running in a minute. I plan to put up a full write-up Learning Graphical Design
Latest posts “Richie Pan’s America” Font shirt designs Now Learning Graphical Design Python Notes Deploy to a Remote Docker registry DMented 'zine for DM's and Character Sheets for Players Online Security Find Notes Kawasaki Vulcan S 650 Notes Honda Rebel 300 Notes Samba Notes Things worth noting My Software Friends Favorites Recommended Tech Elasticsearch Notes Book Notes APRS Notes vim notes Nmap Notes 4runner Notes Bash Notes Raspberry PI Zero quickstart Notes on Van Life Ubuntu 16.04 or 18.04 Installing Dropbox on Arch Linux Arch Linux Notes About Knives, Mainly Sharpening ENS Environment Notification System