Merge branch 'master' into next

This commit is contained in:
Sebastian Thiel
2015-05-18 10:49:24 +02:00
5 changed files with 10 additions and 18 deletions

View File

@@ -23,25 +23,19 @@ name = "${util.program_name()}"
% endif
[dependencies]
hyper = ">= 0.5.0"
mime = "*"
serde = ">= 0.3.0"
serde_macros = "*"
% for dep in cargo.get('dependencies', list()):
${dep}
% endfor
# Needed for latest fix in macros !
[dependencies.hyper]
version = ">= 0.4.0"
git = "https://github.com/hyperium/hyper"
rev = "871f37a5605d433e5699ed2f16631001d86d7805"
# to adapt to hyper changes ...
[dependencies.yup-oauth2]
version = "*"
git = "https://github.com/Byron/yup-oauth2"
rev = "94d5b7c2cac02ad67da8504504364b3081a9a866"
rev = "598f5ed496077e9edca36ff95e2ab352c5b22d0f"
% if make.depends_on_suffix is not None:

View File

@@ -272,7 +272,8 @@ for &(main_command_name, ref about, ref subcommands) in arg_data.iter() {
(_ , &Some(f)) => f,
_ => unreachable!(),
};
let mut arg = Arg::with_name(arg_name_str);
let mut arg = Arg::with_name(arg_name_str)
.empty_values(false);
if let &Some(short_flag) = flag {
arg = arg.short(short_flag);
}

View File

@@ -132,7 +132,7 @@ ${api_clean}:
% endfor
% endfor
clean-all${agsuffix}: ${space_join(1)} docs-clean${agsuffix}
clean-all${agsuffix}: ${space_join(1)}
cargo${agsuffix}: ${space_join(2)}
publish${agsuffix}: | gen-all${agsuffix} ${space_join(4)}
gen-all${agsuffix}: ${space_join(0)}
@@ -159,6 +159,7 @@ docs${agsuffix}: ${' '.join(central_api_index(util.library_to_crate_name(a[0]))
help${agsuffix}:
$(info gen-all${agsuffix} - make all ${make.target_name})
$(info docs${agsuffix} - make all ${make.target_name} documentation)
$(info clean-all${agsuffix} - delete all generated ${make.target_name})
$(info cargo${agsuffix} - run cargo on all ${make.target_name}, use ARGS="args ..." to specify cargo arguments)
$(info publish${agsuffix} - run cargo publish on all ${make.target_name} and remember successful ones with marker files)