-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Create entrypoint
- The entry.py should have a main function that receives the arguments inside a
main(args)function. - The end of file must check for the equality
__name__ == '__main__'and pass the correct argument list to themain.
def main(args):
...
if __name__ == '__main__':
main(sys.argv[1:])- The main function would further use an argument parsing library to parse the arguments and proceed with the functionality as intended.
@Clash-ion
Originally posted by @paramsiddharth in #3 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels