Setuptools not passing arguments for entry_points

前端 未结 2 480
感情败类
感情败类 2021-02-14 02:05

I\'m using setuptools for a Python script I wrote

After installing, I do:

$ megazord -i input -d database -v xx-xx -w yy-yy

Like I woul

2条回答
  •  太阳男子
    2021-02-14 02:30

    The setuptools console_scripts entry point wants a function of no arguments.

    Happily, optparse (Parser for command line options) doesn't need to be passed any arguments, it will read in sys.argv[1:] and use that as it's input.

提交回复
热议问题