Skip to content

Create entrypoint #7

@paramsiddharth

Description

@paramsiddharth

Create entrypoint

  1. The entry.py should have a main function that receives the arguments inside a main(args) function.
  2. The end of file must check for the equality __name__ == '__main__' and pass the correct argument list to the main.
def main(args):
    ...

if __name__ == '__main__':
    main(sys.argv[1:])
  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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions