Skip to main content

Commandline Magic

Project description

This module will present simplest mechanism for working with command line options and arguments.

Example of the usage bellow:

import cm
from cm.options.path import base
from cm.options.db import port, name


port.type = int
port.default = 10
port.help = "Lolwat"
base.help = "Base path"

if __name__ == '__main__':
    cm.parse_command_line()

and try to run it $ python test.py --help

List of available program options:
Group "db"
    --db-port       Lolwat [default: "10"]
    --db-name


Group "path"
    --path-base     Base path

Project details


Download files

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

Source Distribution

cm-0.1a2.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file cm-0.1a2.tar.gz.

File metadata

  • Download URL: cm-0.1a2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cm-0.1a2.tar.gz
Algorithm Hash digest
SHA256 c5c92a16a9c0b0b9bfdd2586c9208d218fd1657cc14b579eff3e348409ed831b
MD5 f782cb9473a8ef87532bc500cef258d3
BLAKE2b-256 3ca5bfbe988a20259a16cd85c78980054d327bb84278b0652e21707f18f5d4e0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page