Skip to content

Commit 1cb11bf

Browse files
committed
Fix a discrepancy between documentation and implementation
Clarify and improve the documentation and bump to 0.2.0 to signal the change. Fixes #13
1 parent f2f7b9d commit 1cb11bf

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "autotools"
3-
version = "0.1.4"
3+
version = "0.2.0"
44
authors = ["Luca Barbato <[email protected]>"]
55
license = "MIT"
66
keywords = ["build-dependencies"]

src/lib.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
//! ```toml
1111
//! [build-dependencies]
1212
//! autotools = "0.1"
13+
//! ```
1314
//!
1415
//! ## Usage
1516
//!
16-
//!
1717
//! ```no_run
1818
//! use autotools;
1919
//!
@@ -155,22 +155,22 @@ impl Config {
155155
self
156156
}
157157

158-
/// --enable-<opt><=optarg>
158+
/// Passes `--enable-<opt><=optarg>` to configure.
159159
pub fn enable<P: AsRef<OsStr>>(&mut self, opt: P, optarg: Option<P>) -> &mut Config {
160160
self.set_opt(Kind::Enable, opt, optarg)
161161
}
162162

163-
/// --disable-<opt><=optarg>
163+
/// Passes `--disable-<opt><=optarg>` to configure.
164164
pub fn disable<P: AsRef<OsStr>>(&mut self, opt: P, optarg: Option<P>) -> &mut Config {
165165
self.set_opt(Kind::Disable, opt, optarg)
166166
}
167167

168-
/// --with-<opt><=optarg>
168+
/// Passes `--with-<opt><=optarg>` to configure.
169169
pub fn with<P: AsRef<OsStr>>(&mut self, opt: P, optarg: Option<P>) -> &mut Config {
170170
self.set_opt(Kind::With, opt, optarg)
171171
}
172172

173-
/// --without-<opt><=optarg>
173+
/// Passes `--without-<opt><=optarg>` to configure.
174174
pub fn without<P: AsRef<OsStr>>(&mut self, opt: P, optarg: Option<P>) -> &mut Config {
175175
self.set_opt(Kind::Without, opt, optarg)
176176
}
@@ -353,6 +353,7 @@ impl Config {
353353
Kind::With => os.push("with"),
354354
Kind::Without => os.push("without")
355355
};
356+
os.push("-");
356357
os.push(k);
357358
if let &Some(ref v) = v {
358359
os.push("=");

0 commit comments

Comments
 (0)