Change flag to --no-modules

This commit is contained in:
Sharad Chand
2018-04-11 13:59:58 +05:45
parent ee1e3abd45
commit 8c935d5d94
3 changed files with 12 additions and 12 deletions

View File

@ -17,7 +17,7 @@ pub struct Bindgen {
path: Option<PathBuf>,
nodejs: bool,
browser: bool,
amd: bool,
no_modules: bool,
debug: bool,
typescript: bool,
}
@ -37,7 +37,7 @@ impl Bindgen {
path: None,
nodejs: false,
browser: false,
amd: false,
no_modules: false,
debug: false,
typescript: false,
}
@ -58,8 +58,8 @@ impl Bindgen {
self
}
pub fn amd(&mut self, amd: bool) -> &mut Bindgen {
self.amd = amd;
pub fn no_modules(&mut self, no_modules: bool) -> &mut Bindgen {
self.no_modules = no_modules;
self
}