|
10 | 10 | //! ```toml
|
11 | 11 | //! [build-dependencies]
|
12 | 12 | //! autotools = "0.1"
|
| 13 | +//! ``` |
13 | 14 | //!
|
14 | 15 | //! ## Usage
|
15 | 16 | //!
|
16 |
| -//! |
17 | 17 | //! ```no_run
|
18 | 18 | //! use autotools;
|
19 | 19 | //!
|
@@ -155,22 +155,22 @@ impl Config {
|
155 | 155 | self
|
156 | 156 | }
|
157 | 157 |
|
158 |
| - /// --enable-<opt><=optarg> |
| 158 | + /// Passes `--enable-<opt><=optarg>` to configure. |
159 | 159 | pub fn enable<P: AsRef<OsStr>>(&mut self, opt: P, optarg: Option<P>) -> &mut Config {
|
160 | 160 | self.set_opt(Kind::Enable, opt, optarg)
|
161 | 161 | }
|
162 | 162 |
|
163 |
| - /// --disable-<opt><=optarg> |
| 163 | + /// Passes `--disable-<opt><=optarg>` to configure. |
164 | 164 | pub fn disable<P: AsRef<OsStr>>(&mut self, opt: P, optarg: Option<P>) -> &mut Config {
|
165 | 165 | self.set_opt(Kind::Disable, opt, optarg)
|
166 | 166 | }
|
167 | 167 |
|
168 |
| - /// --with-<opt><=optarg> |
| 168 | + /// Passes `--with-<opt><=optarg>` to configure. |
169 | 169 | pub fn with<P: AsRef<OsStr>>(&mut self, opt: P, optarg: Option<P>) -> &mut Config {
|
170 | 170 | self.set_opt(Kind::With, opt, optarg)
|
171 | 171 | }
|
172 | 172 |
|
173 |
| - /// --without-<opt><=optarg> |
| 173 | + /// Passes `--without-<opt><=optarg>` to configure. |
174 | 174 | pub fn without<P: AsRef<OsStr>>(&mut self, opt: P, optarg: Option<P>) -> &mut Config {
|
175 | 175 | self.set_opt(Kind::Without, opt, optarg)
|
176 | 176 | }
|
@@ -353,6 +353,7 @@ impl Config {
|
353 | 353 | Kind::With => os.push("with"),
|
354 | 354 | Kind::Without => os.push("without")
|
355 | 355 | };
|
| 356 | + os.push("-"); |
356 | 357 | os.push(k);
|
357 | 358 | if let &Some(ref v) = v {
|
358 | 359 | os.push("=");
|
|
0 commit comments