Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Unified Diff: recipe_engine/depgraph.py

Issue 2848443003: [recipes.py] add missing helpstrings, merge test subcommands into main parser. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_engine/bundle.py ('k') | recipe_engine/doc.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/depgraph.py
diff --git a/recipe_engine/depgraph.py b/recipe_engine/depgraph.py
index 4ea1f15a5899d3dfab526defda85c574a0462a9e..b0c1b2100af4894aaa92ce71abee4c9116acac39 100644
--- a/recipe_engine/depgraph.py
+++ b/recipe_engine/depgraph.py
@@ -25,25 +25,28 @@ _GRAPH_FOOTER = """}
def add_subparser(parser):
depgraph_p = parser.add_parser(
- 'depgraph',
- description=(
- 'Produce graph of recipe and recipe module dependencies. Example: '
- './recipes.py --package infra/config/recipes.cfg depgraph | tred | '
- 'dot -Tpdf > graph.pdf'))
+ 'depgraph',
+ help='Produce graphviz graph of recipe and recipe module dependencies.',
+ description=(
+ 'Produce graphviz graph of recipe and recipe module dependencies. '
+ 'Example: ./recipes.py --package infra/config/recipes.cfg depgraph | '
+ 'tred | dot -Tpdf > graph.pdf'))
depgraph_p.add_argument(
- '--output', type=argparse.FileType('w'), default=sys.stdout,
- help='The file to write output to')
+ '--output', type=argparse.FileType('w'), default=sys.stdout,
+ help='The file to write output to')
depgraph_p.add_argument(
- '--ignore-package', action='append', default=[],
- dest='ignore_packages',
- help='Ignore a recipe package (e.g. recipe_engine). Can be passed '
- 'multiple times')
+ '--ignore-package', action='append', default=[],
+ dest='ignore_packages',
+ help=(
+ 'Ignore a recipe package (e.g. recipe_engine). Can be passed '
+ 'multiple times'))
depgraph_p.add_argument(
- '--recipe-filter', default='',
- help='A recipe substring to examine. If present, the depgraph will '
- 'include a recipe section containing recipes whose names contain '
- 'this substring. It will also filter all nodes of the graph to only '
- 'include modules touched by the filtered recipes.')
+ '--recipe-filter', default='',
+ help=(
+ 'A recipe substring to examine. If present, the depgraph will '
+ 'include a recipe section containing recipes whose names contain '
+ 'this substring. It will also filter all nodes of the graph to only '
+ 'include modules touched by the filtered recipes.'))
depgraph_p.set_defaults(command='depgraph', func=main)
« no previous file with comments | « recipe_engine/bundle.py ('k') | recipe_engine/doc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698