@@ -37,8 +37,11 @@ doc = <<DOCOPT
37
37
Cpp Dependency Graph
38
38
39
39
Usage:
40
- cpp_dependency_graph visualise --root_dir <argument> [--component <component>] [--output_file <file>] [--output_format <format>]
41
- cpp_dependency_graph visualise_includes --root_dir <argument> [--file <file>] [--component <component>] [--output_file <file>] [--output_format <format>]
40
+ cpp_dependency_graph visualise_component --root_dir <argument> --component <component> [--output_file <file>] [--output_format <format>]
41
+ cpp_dependency_graph visualise_project --root_dir <argument> [--output_file <file>] [--output_format <format>]
42
+ cpp_dependency_graph visualise_component_includes --root_dir <argument> --component <component> [--output_file <file>] [--output_format <format>]
43
+ cpp_dependency_graph visualise_header_includes --root_dir <argument> --header <header> [--output_file <file>] [--output_format <format>]
44
+ cpp_dependency_graph visualise_project_includes --root_dir <argument> [--output_file <file>] [--output_format <format>]
42
45
cpp_dependency_graph visualise_components --root_dir <argument> [--output_file <file>] [--output_format <format>]
43
46
cpp_dependency_graph visualise_cyclic_deps --root_dir <argument> [--component <component>] [--output_file <file>] [--output_format <format>]
44
47
cpp_dependency_graph -h | --help | -v | --version
@@ -47,9 +50,10 @@ doc = <<DOCOPT
47
50
-h --help show this help message and exit
48
51
-v --version show version and exit
49
52
-r --root_dir dir top level root directory of C/C++ project
50
- -c --component component component generate visualisation for (case sensitive!)
51
53
-o --output_file file name of output file to be generated [default: deps.html]
52
54
-f --output_format format format of output file (dot, html, graphml, json) [default: html]
55
+ --component component component generate visualisation for (case sensitive!)
56
+ --header file header file to generate visualisation for (case sensitive!)
53
57
DOCOPT
54
58
55
59
begin
@@ -67,20 +71,16 @@ begin
67
71
Kernel . exit ( 1 )
68
72
end
69
73
70
- if args [ 'visualise' ]
71
- if args [ '--component' ]
72
- generate_component_graph ( project_dir , args [ '--component' ] , args [ '--output_format' ] , args [ '--output_file' ] )
73
- else
74
- generate_project_graph ( project_dir , args [ '--output_format' ] , args [ '--output_file' ] )
75
- end
76
- elsif args [ 'visualise_includes' ]
77
- if args [ '--component' ]
78
- generate_component_include_graph ( project_dir , args [ '--component' ] , args [ '--output_format' ] , args [ '--output_file' ] )
79
- elsif args [ '--file' ]
80
- generate_file_include_graph ( project_dir , args [ '--file' ] , args [ '--output_format' ] , args [ '--output_file' ] )
81
- else
82
- generate_project_include_graph ( project_dir , args [ '--output_format' ] , args [ '--output_file' ] )
83
- end
74
+ if args [ 'visualise_component' ]
75
+ generate_component_graph ( project_dir , args [ '--component' ] , args [ '--output_format' ] , args [ '--output_file' ] )
76
+ elsif args [ 'visualise_project' ]
77
+ generate_project_graph ( project_dir , args [ '--output_format' ] , args [ '--output_file' ] )
78
+ elsif args [ 'visualise_component_includes' ]
79
+ generate_component_include_graph ( project_dir , args [ '--component' ] , args [ '--output_format' ] , args [ '--output_file' ] )
80
+ elsif args [ 'visualise_header_includes' ]
81
+ generate_file_include_graph ( project_dir , args [ '--header' ] , args [ '--output_format' ] , args [ '--output_file' ] )
82
+ elsif args [ 'visualise_project_includes' ]
83
+ generate_project_include_graph ( project_dir , args [ '--output_format' ] , args [ '--output_file' ] )
84
84
elsif args [ 'visualise_components' ]
85
85
generate_enclosure_diagram ( project_dir , args [ '--output_file' ] )
86
86
elsif args [ 'visualise_cyclic_deps' ]
0 commit comments