Fix output of "fuel task --help" command

Change-Id: I0f53f99a3beb4d3484568926c382755799da0eb2
Closes-Bug: #1447109
This commit is contained in:
Alexander Gubanov 2015-07-09 18:49:12 +03:00
parent fbe0fa49d4
commit 21e151955a
2 changed files with 7 additions and 7 deletions

View File

@ -38,7 +38,7 @@ class InterruptAction(Action):
self.serializer.print_to_output(
intercept_task.data,
"{0} task of environment with id={1} started. "
"To check task status run 'fuel task -t {2}'.".format(
"To check task status run 'fuel task --tid {2}'.".format(
self.action_name.title(),
params.env,
intercept_task.data["id"]

View File

@ -30,10 +30,10 @@ class TaskAction(Action):
self.args = [
group(
Args.get_list_arg("List all tasks"),
Args.get_delete_arg("Delete task with some task-id.")
Args.get_delete_arg("Delete task with some task-id")
),
Args.get_force_arg("Force deletion"),
Args.get_task_arg("Task id.")
Args.get_task_arg("Task id")
]
self.flag_func_map = (
("delete", self.delete),
@ -43,10 +43,10 @@ class TaskAction(Action):
@check_all("task")
def delete(self, params):
"""To delete some tasks:
fuel task delete --task-id 1,2,3
fuel task --delete --task-id 1,2,3
To delete some tasks forcefully (without considering their state):
fuel task delete -f --tid 1,6
To delete some tasks forcefully (without considering their state):
fuel task --delete -f --tid 1,6
"""
tasks = Task.get_by_ids(params.task)
delete_response = map(
@ -63,7 +63,7 @@ class TaskAction(Action):
"""To display all tasks:
fuel task
To display tasks with some ids:
To display tasks with some ids:
fuel task --tid 1,2,3
"""
acceptable_keys = ("id", "status", "name",