We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6712d06 + 7f617f3 commit c64be0bCopy full SHA for c64be0b
Makefile
@@ -1,4 +1,4 @@
1
-LIBNAME := $(shell rustc --crate-file-name argparse/mod.rs)
+LIBNAME := $(shell rustc --print-file-name argparse/mod.rs)
2
3
4
all: argparse-lib
argparse/mod.rs
-#![crate_id = "argparse#0.1"]
+#![crate_name = "argparse"]
#![crate_type = "dylib"]
extern crate collections;
argparse/parser.rs
@@ -661,7 +661,7 @@ impl<'parser> ArgumentParser<'parser> {
661
fail!("Bad short argument {}", name);
662
}
663
self.short_options.insert(
664
- name[1] as char, opt.clone());
+ name.as_bytes()[1] as char, opt.clone());
665
666
667
0 commit comments