mirror of
https://github.com/iKarith/cppo-ng.git
synced 2024-06-13 07:29:30 +00:00
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__)
|
print(sys.modules[__name__].__doc__)
|
||||||
sys.exit(exitcode)
|
sys.exit(exitcode)
|
||||||
|
|
||||||
def cppo(args: list):
|
def main() -> None:
|
||||||
# Setup logging
|
# Setup logging
|
||||||
handler = logging.StreamHandler(sys.stdout)
|
handler = logging.StreamHandler(sys.stdout)
|
||||||
formatter = logging.Formatter('{message}', style='{')
|
formatter = logging.Formatter('{message}', style='{')
|
||||||
|
@ -66,6 +66,7 @@ def cppo(args: list):
|
||||||
|
|
||||||
g = blocksfree.legacy.g
|
g = blocksfree.legacy.g
|
||||||
|
|
||||||
|
args = sys.argv
|
||||||
while True: # breaks when there are no more arguments starting with dash
|
while True: # breaks when there are no more arguments starting with dash
|
||||||
if len(args) == 1:
|
if len(args) == 1:
|
||||||
usage()
|
usage()
|
||||||
|
@ -143,4 +144,4 @@ def cppo(args: list):
|
||||||
blocksfree.legacy.run_cppo()
|
blocksfree.legacy.run_cppo()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
cppo(sys.argv)
|
main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user