File: help.py

package info (click to toggle)
python-imageio 2.37.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,144 kB
  • sloc: python: 26,306; makefile: 138
file content (16 lines) | stat: -rw-r--r-- 345 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import subprocess

from invoke import task

from ._config import NAME


@task
def help(ctx):
    """Get info on usage."""

    print("Developer tools for project %s\n" % NAME.capitalize())
    print("  invoke <task> [arg] to run a task")
    print("  invoke --help <task> to get info on a task")
    print()
    subprocess.call("invoke --list")