From cccead344194b61dc6d891bbfe705fb66dc9127b Mon Sep 17 00:00:00 2001 From: Saugat Pachhai Date: Sat, 20 Feb 2021 13:21:39 +0545 Subject: [PATCH] stage:list: update output and help text (#5499) * stage:list: update output and help text * Replaced 'Produces' with 'Outputs' * Replaced 'Stage depends on' with just 'Depends on' * Changes help text of --names-only and --fail * Update dvc/command/stage.py Co-authored-by: Dave Berenbaum * s/Generates/Reports Co-authored-by: Dave Berenbaum --- dvc/command/stage.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dvc/command/stage.py b/dvc/command/stage.py index 3236369fd..cd7b5a51b 100644 --- a/dvc/command/stage.py +++ b/dvc/command/stage.py @@ -22,10 +22,10 @@ def generate_description(stage: "Stage") -> str: return ", ".join(out.def_path for out in outs) if not stage.deps and not stage.outs: - return "No outputs or dependencies." + return "No outputs or dependencies" if not stage.outs and stage.deps: - return "Stage depends on " + part_desc(stage.deps) + return "Depends on " + part_desc(stage.deps) def is_plot_or_metric(out: "BaseOutput"): return bool(out.plot) or bool(out.metric) @@ -34,11 +34,11 @@ def generate_description(stage: "Stage") -> str: outs = list(filterfalse(is_plot_or_metric, stage.outs)) if outs: - desc.append("Produces " + part_desc(outs)) + desc.append("Outputs " + part_desc(outs)) plots_and_metrics = list(filter(is_plot_or_metric, stage.outs)) if plots_and_metrics: - desc.append("Generates " + part_desc(plots_and_metrics)) + desc.append("Reports " + part_desc(plots_and_metrics)) return "; ".join(desc) @@ -346,7 +346,7 @@ def add_parser(subparsers, parent_parser): "--fail", action="store_true", default=False, - help="Fail immediately if there's an error.", + help="Fail immediately, do not suppress any syntax errors.", ) stage_list_parser.add_argument( "-R", @@ -359,6 +359,6 @@ def add_parser(subparsers, parent_parser): "--names-only", action="store_true", default=False, - help="List only the name of the stages.", + help="List only stage names.", ) stage_list_parser.set_defaults(func=CmdStageList)