mirror of https://github.com/iKarith/cppo-ng.git
Rename main cppo function to ... main :)
This commit is contained in:
parent
894225d1fa
commit
b55abc4baf
5
cppo
5
cppo
|
@ -56,7 +56,7 @@ def usage(exitcode=1):
|
|||
print(sys.modules[__name__].__doc__)
|
||||
sys.exit(exitcode)
|
||||
|
||||
def cppo(args: list):
|
||||
def main() -> None:
|
||||
# Setup logging
|
||||
handler = logging.StreamHandler(sys.stdout)
|
||||
formatter = logging.Formatter('{message}', style='{')
|
||||
|
@ -66,6 +66,7 @@ def cppo(args: list):
|
|||
|
||||
g = blocksfree.legacy.g
|
||||
|
||||
args = sys.argv
|
||||
while True: # breaks when there are no more arguments starting with dash
|
||||
if len(args) == 1:
|
||||
usage()
|
||||
|
@ -143,4 +144,4 @@ def cppo(args: list):
|
|||
blocksfree.legacy.run_cppo()
|
||||
|
||||
if __name__ == '__main__':
|
||||
cppo(sys.argv)
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue