Skip to main content

LUPE: a better cli app helper

Project description

When it comes to build command-line apps, there is nothing like LUPE


$ pip install lupe


  • Parses arguments
  • Outputs version when --version or -v
  • Outputs description and supplied help text when --help or -h


There is not mango emoji yet supported. So instead, I used a pear, but it kinda looks the same 😒

$ ./ dinner --mango
# -*- coding: UTF-8 -*-

from lupe import *
from foo import *

cli = lupe(`
	  $ foo <input>

	  --mango, -m  Include a mango

	  $ foo dinner --mango
	  	dinner 🍐
`, {
	flags: {
		mango: {
			type: 'boolean',
			alias: 'm'
	input: ['dinner'],
	flags: {mango: true},

foo(cli.input[0], cli.flags);


Based on meow from @Sindresorhus


Carlos Abraham Logo
Carlos Abraham


MIT License © Carlos Abraham

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
lupe-0.1.0a0-py2-none-any.whl (2.1 kB) Copy SHA256 hash SHA256 Wheel py2

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page