Revision 5ed5f9e6 snf-astakos-app/astakos/im/management/commands/project-show.py
b/snf-astakos-app/astakos/im/management/commands/project-show.py | ||
---|---|---|
42 | 42 |
|
43 | 43 |
class Command(BaseCommand): |
44 | 44 |
args = "<id or name>" |
45 |
help = "Show project details" |
|
45 |
help = """ |
|
46 |
Show project details. |
|
47 |
|
|
48 |
Command comes in two forms: |
|
49 |
project-show <id> Look up project by id |
|
50 |
|
|
51 |
project-show <name> Look up all projects whose name |
|
52 |
contains the given string |
|
53 |
""" |
|
46 | 54 |
|
47 | 55 |
option_list = BaseCommand.option_list + ( |
48 | 56 |
make_option('--app', |
49 | 57 |
action='store_true', |
50 | 58 |
dest='app', |
51 | 59 |
default=False, |
52 |
help="Show application details instead"), |
|
60 |
help="Show details of applications instead of projects" |
|
61 |
), |
|
53 | 62 |
make_option('--pending', |
54 | 63 |
action='store_true', |
55 | 64 |
dest='pending', |
56 | 65 |
default=False, |
57 |
help="Show pending modification too"), |
|
58 |
) |
|
66 |
help=("For a given project, show also pending modifications " |
|
67 |
"(applications), if any") |
|
68 |
), |
|
69 |
) |
|
59 | 70 |
|
60 | 71 |
def handle(self, *args, **options): |
61 | 72 |
if len(args) != 1: |
Also available in: Unified diff