[PYTHON] I made a module that can be glitched easily, but I can't pass arguments from entry_points

https://github.com/trsqxyz/glitch

setup.py


entry_points={
		"console_scripts": [
			"glitch = glitch.glitch:main",
		]
	}

I understand that it can be started as CLI, but I can't pass the argument. I thought it was sys.argv, but it was different By the way, what I want to pass is something like glitch -i lena.jpg I looked at cliff, but I'm using docopt in the module, so I'm not sure what to do, so I'm writing it here. python -m glitch -i lena.jpg maximum hard works

2015/06/21 It can be executed by calling _main () from main () !! It can be installed with pip install glitch. There are still some strange things, but for the time being, this is it. @Lspeciosum Thank you very much for your advice.

Recommended Posts

I made a module that can be glitched easily, but I can't pass arguments from entry_points
I made a simple timer that can be started from the terminal
I made a shuffle that can be reset (reverted) with Python
I made a module PyNanaco that can charge nanaco credit with python
I made a Docker image that can call FBX SDK Python from Node.js
I made a familiar function that can be used in statistics with Python
"Gazpacho", a scraping module that can be used more easily than Beautiful Soup
I tried to make a memo app that can be pomodoro, but a reflection record
I made a class that easily performs unixtime ← → datetime conversion
[Atcoder] [C ++] I made a test automation tool that can be used during the contest
I made a plug-in that can "Daruma-san fell" with Minecraft
[Python] I made my own library that can be imported dynamically
I made a package that can compare morphological analyzers with Python
[python] I made a class that can write a file tree quickly
Can I be a data scientist?
I created a template for a Python project that can be used universally
How to make a rock-paper-scissors bot that can be easily moved (commentary)
Create a web app that can be easily visualized with Plotly Dash
I made a plug-in "EZPrinter" that easily outputs map PDF with QGIS.
I made a note of Google colaboratory which can use Spleeter easily.
[Python] I made a utility that can access dict type like a path
ConSinGAN: I tried using GAN that can be generated from one image
I tried to create a class that can easily serialize Json in Python
I want to create a priority queue that can be updated in Python (2.7)
In Python, I made a LINE Bot that sends pollen information from location information.
Convert images from FlyCapture SDK to a form that can be used with openCV
A mechanism to call a Ruby method from Python that can be done in 200 lines
I made my own Django Middleware so that I can access request information from anywhere
I made a tool to automatically generate a state transition diagram that can be used for both web development and application development