File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ pub struct Options {
27
27
flag_frozen : bool ,
28
28
flag_locked : bool ,
29
29
flag_all : bool ,
30
+ flag_exclude : Vec < String > ,
30
31
#[ serde( rename = "flag_Z" ) ]
31
32
flag_z : Vec < String > ,
32
33
}
@@ -42,6 +43,7 @@ Options:
42
43
--open Opens the docs in a browser after the operation
43
44
-p SPEC, --package SPEC ... Package to document
44
45
--all Document all packages in the workspace
46
+ --exclude SPEC ... Exclude packages from the build
45
47
--no-deps Don't build documentation for dependencies
46
48
-j N, --jobs N Number of parallel jobs, defaults to # of CPUs
47
49
--lib Document only this package's library
@@ -88,11 +90,9 @@ pub fn execute(options: Options, config: &mut Config) -> CliResult {
88
90
let root = find_root_manifest_for_wd ( options. flag_manifest_path , config. cwd ( ) ) ?;
89
91
let ws = Workspace :: new ( & root, config) ?;
90
92
91
- let spec = if options. flag_all || ( ws. is_virtual ( ) && options. flag_package . is_empty ( ) ) {
92
- Packages :: All
93
- } else {
94
- Packages :: Packages ( & options. flag_package )
95
- } ;
93
+ let spec = Packages :: from_flags ( options. flag_all ,
94
+ & options. flag_exclude ,
95
+ & options. flag_package ) ?;
96
96
97
97
let empty = Vec :: new ( ) ;
98
98
let doc_opts = ops:: DocOptions {
You can’t perform that action at this time.
0 commit comments