Sha256: 5628ba225e546bd8b6716039cfe93d1f650e04344d85a8cd7db290cd894917a1
Contents?: true
Size: 1.02 KB
Versions: 117
Compression:
Stored size: 1.02 KB
Contents
#!/usr/bin/env python # -*- coding: utf-8 -*- # PYTHON_ARGCOMPLETE_OK import argcomplete import argparse import os import subproces import sys import pprint class Ehb: PATH_SEP = '.' def __init__(self, args): self.__args = args def run(self): print "It is a stub" if __name__ == "__main__": parser = argparse.ArgumentParser(description='Coleção de scripts EHB.') parser.add_argument('-c', '--categories', action='store_true', help='Mostra as categorias de programas') parser.add_argument('-s', '--settings', action='store_true', help='Mostra os valores para as configurações') parser.add_argument('program', nargs="?", default='').completer = Ehb.programArgumentCompleter parser.add_argument('arg', nargs=argparse.REMAINDER) argcomplete.autocomplete(parser) args = parser.parse_args() Ehb(args).run()
Version data entries
117 entries across 117 versions & 1 rubygems