repo string | instance_id string | pull_number int64 | test_patch string | base_commit string | FAIL_TO_PASS sequence | PASS_TO_PASS sequence | pr_content string | problem_statement string |
|---|---|---|---|---|---|---|---|---|
clap-rs/clap | clap-rs__clap_4902 | 4,902 | diff --git a/tests/ui/help_cmd_stdout.toml b/tests/ui/help_cmd_stdout.toml
index 198dec3241e..550a753a6c8 100644
--- a/tests/ui/help_cmd_stdout.toml
+++ b/tests/ui/help_cmd_stdout.toml
@@ -5,10 +5,8 @@ stdout = """
Usage: stdio-fixture[EXE] [OPTIONS] [COMMAND]
Commands:
- more
-
- help
- Print ... | d597cf7bd6a1fc073ff483f3e39d09c3bd26f95c | [
"ui_tests"
] | [
"tests::sc_long_flag_long_opt_eq_pos",
"default_vals::default_if_arg_present_no_default_user_override",
"app_settings::allow_ext_sc_when_sc_required",
"arg_aliases::multiple_aliases_of_flag",
"indices::indices_mult_opts",
"groups::req_group_usage_string",
"posix_compatible::conflict_overridden",
"prop... | fix(help): Don't use next-line-help on long-help for subcommands
Subcommands don't switch their behavior on `--help`, so let's not switch to next-line-help based on `--help`.
Fixes #4897
<!--
Thanks for helping out!
Please link the appropriate issue from your PR.
If you don't have an issue, we'd recommend ... | Show subcommand `about` on same line, even in `--help`
### Please complete the following tasks
- [X] I have searched the [discussions](https://github.com/clap-rs/clap/discussions)
- [X] I have searched the [open](https://github.com/clap-rs/clap/issues) and [rejected](https://github.com/clap-rs/clap/issues?q=is%3Ais... |
clap-rs/clap | clap-rs__clap_3670 | 3,670 | diff --git a/clap_complete/tests/snapshots/sub_subcommands.bash b/clap_complete/tests/snapshots/sub_subcommands.bash
index dec4d2d78f6..c39eb589e66 100644
--- a/clap_complete/tests/snapshots/sub_subcommands.bash
+++ b/clap_complete/tests/snapshots/sub_subcommands.bash
@@ -73,7 +73,7 @@ _my-app() {
return 0... | 3ca1b7709408f8bb3ec6b48ac2b4854aabe643b7 | [
"tests::issue_3669_command_build_recurses"
] | [
"tests::sc_long_flag_long_opt_eq_pos",
"default_vals::default_if_arg_present_no_default_user_override",
"app_settings::allow_ext_sc_when_sc_required",
"arg_aliases::multiple_aliases_of_flag",
"indices::indices_mult_opts",
"groups::req_group_usage_string",
"posix_compatible::conflict_overridden",
"prop... | fix(builder): Fully recurse when building
Besides addressing the panic from assuming things were built when they
weren't, this should fix some completion issues for some people.
Fixes #3669 | Clap 3.1.13 fails to build by unwrapping a None value
### Please complete the following tasks
- [X] I have searched the [discussions](https://github.com/clap-rs/clap/discussions)
- [X] I have searched the [open](https://github.com/clap-rs/clap/issues) and [rejected](https://github.com/clap-rs/clap/issues?q=is%3Aissue+... |
clap-rs/clap | clap-rs__clap_2804 | 2,804 | diff --git a/tests/multiple_values.rs b/tests/multiple_values.rs
index abd7bc34a68..d8584bc68d5 100644
--- a/tests/multiple_values.rs
+++ b/tests/multiple_values.rs
@@ -1319,3 +1319,64 @@ fn number_of_values_preferred_over_value_names() {
["val1", "val2", "val3", "val4"]
);
}
+
+#[test]
+fn values_per_oc... | edd0124af07459d0dbde75c07a733dcadfff2a47 | [
"values_per_occurrence_positional"
] | [
"group_conflict_2",
"flag_subcommand_short_normal_usage_string",
"args_negate_subcommands_one_level",
"issue_626_panic",
"basic",
"missing_positional_no_hyphen",
"build::usage_parser::test::create_option_usage2",
"build::usage_parser::test::create_option_usage_both2",
"allow_ext_sc_when_sc_required"... | fix(parser): Allow multiple_occurrecnes with positional args
This unblocks
- Defining repeated tuples in positional arguments
- Potentially using this in #1772
Fixes #2784
<!--
If your PR closes some issues, please write `Closes #XXXX`
where `XXXX` is the number of the issue you want to fix.
Each issue goes ... | Cannot use multiple values with multiple occurrences with positional arguments
### Please complete the following tasks
- [X] I have searched the [discussions](https://github.com/clap-rs/clap/discussions)
- [X] I have searched the existing issues
### Rust Version
rustc 1.55.0 (c8dfcfe04 2021-09-06)
### Clap Version
... |
clap-rs/clap | clap-rs__clap_2669 | 2,669 | diff --git a/tests/app_settings.rs b/tests/app_settings.rs
index 3b9f83f4123..9e953f108da 100644
--- a/tests/app_settings.rs
+++ b/tests/app_settings.rs
@@ -842,6 +842,19 @@ fn issue_1066_allow_leading_hyphen_and_unknown_args_option() {
assert_eq!(res.unwrap_err().kind, ErrorKind::UnknownArgument);
}
+#[test]
+... | 10c7228b3f8f1e9e1f2b9744cd802d8658c36f1a | [] | [
"build::usage_parser::test::create_option_usage2",
"build::usage_parser::test::create_option_usage_both2",
"build::usage_parser::test::create_option_usage_long1",
"output::help::test::display_width_handles_emojis",
"build::usage_parser::test::create_option_usage_both4",
"parse::matches::matched_arg::tests... | Allow `AllowHyphenValues` work with positional arguments.
Part3 of #2655
Bubble up the parse result, the do error emitting on them, which makes recovering from parsing error easier.
Extract ParseState out of ParseResult, make parser stores ParseState rather than parse result.
Move pos_counter correction abo... | `allow_leading_hyphens` doesn't work on positional arguments
### Affected Version of clap
2.32.0
### Bug or Feature Request Summary
`allow_leading_hyphens` doesn't work on positional arguments. Example:
```
use clap::{App, Arg};
fn main() {
let m = App::new("pattest")
.arg(Arg::with_name("pa... |
clap-rs/clap | clap-rs__clap_2534 | 2,534 | diff --git a/tests/help.rs b/tests/help.rs
index 513bb11cdd3..7bf90ccdb70 100644
--- a/tests/help.rs
+++ b/tests/help.rs
@@ -1944,6 +1944,64 @@ fn multiple_custom_help_headers() {
));
}
+static CUSTOM_HELP_SECTION_HIDDEN_ARGS: &str = "blorp 1.4
+
+Will M.
+
+does stuff
+
+USAGE:
+ test --song <song> --song-v... | 33c305ea6ff6cdda7796e57966374cb40633968f | [
"custom_help_headers_hidden_args"
] | [
"group_conflict_2",
"flag_subcommand_short_normal_usage_string",
"args_negate_subcommands_one_level",
"issue_626_panic",
"missing_positional_no_hyphen",
"build::usage_parser::test::create_option_usage2",
"util::argstr::test::test_trim_start_matches",
"build::usage_parser::test::create_option_usage_bot... | Hide help heading when all args are hidden
Closes #2533.
Passing a closure isn't the nicest, but it avoids us having to duplicate the `args.filter(|arg| {should_show_arg(...)})` logic in multiple places. | Help heading is printed when all args are hidden
### Please complete the following tasks
- [X] I have searched the [discussions](https://github.com/clap-rs/clap/discussions)
- [X] I have searched the existing issues
### Rust Version
rustc 1.52.0 (88f19c6da 2021-05-03)
### Clap Version
master (585a7c955)
### Minim... |
clap-rs/clap | clap-rs__clap_2529 | 2,529 | diff --git a/clap_derive/tests/arg_enum.rs b/clap_derive/tests/arg_enum.rs
index ecf8023b6d8..2ed7cfa9a3c 100644
--- a/clap_derive/tests/arg_enum.rs
+++ b/clap_derive/tests/arg_enum.rs
@@ -7,7 +7,7 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or ... | e3bfa50e8f451b31a00d99147d608607521419a3 | [
"from_str_invalid"
] | [
"group_conflict_2",
"flag_subcommand_short_normal_usage_string",
"args_negate_subcommands_one_level",
"issue_626_panic",
"basic",
"missing_positional_no_hyphen",
"version_long",
"build::usage_parser::test::create_option_usage2",
"build::usage_parser::test::create_option_usage_both2",
"issue_1066_a... | Derived ArgEnum::from_str returns Err instead of panicking
ArgEnum is public so it is possible for users to call it with a non-variant input string.
Closes #2528 | Derived ArgEnum::from_str should not panic on invalid input
### Please complete the following tasks
- [X] I have searched the [discussions](https://github.com/clap-rs/clap/discussions)
- [X] I have searched the existing issues
### Rust Version
rustc 1.52.1
### Clap Version
clap 3.0.0-beta.2
### Minimal reproduci... |
BurntSushi/ripgrep | BurntSushi__ripgrep_2576 | 2,576 | diff --git a/tests/regression.rs b/tests/regression.rs
index b90768032..5ef741cf6 100644
--- a/tests/regression.rs
+++ b/tests/regression.rs
@@ -1173,3 +1173,18 @@ rgtest!(r2480, |dir: Dir, mut cmd: TestCommand| {
cmd.args(&["--only-matching", "-e", "(?i)notfoo", "-e", "bar", "file"]);
cmd.assert_err();
});
... | fed4fea217abbc502f2e823465de903c8f2b623d | [
"regression::r2574"
] | [
"misc::binary_quit_mmap",
"feature::f45_precedence_with_others",
"regression::r87",
"regression::r1401_look_ahead_only_matching_1",
"misc::case_insensitive",
"misc::files",
"regression::r553_switch",
"misc::binary_search_mmap",
"regression::r807",
"regression::r2236",
"binary::before_match2_expl... | regex: fix fast path for -w/--word-regexp flag
It turns out our fast path for -w/--word-regexp wasn't quite correct in some cases. Namely, we use `(?m:^|\W)(<original-regex>)(?m:\W|$)` as the implementation of -w/--word-regexp since `\b(<original-regex>)\b` has some unintuitive results in certain cases, specifically wh... | Incomplete matches when using the `--word-regexp` flag
#### What version of ripgrep are you using?
ripgrep 13.0.0
-SIMD -AVX (compiled)
#### How did you install ripgrep?
`wget https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep-13.0.0-x86_64-unknown-linux-musl.tar.gz`
#### What operating sys... |
tokio-rs/tracing | tokio-rs__tracing_1619 | 1,619 | "diff --git a/tracing-subscriber/tests/layer_filters/downcast_raw.rs b/tracing-subscriber/tests/laye(...TRUNCATED) | 7dda7f5e90a649aee36eaa51c11b59f62470d456 | [
"downcast_raw::forward_downcast_raw_to_layer"
] | ["event_outside_of_span","filter::env::tests::callsite_enabled_includes_span_directive_field","fmt::(...TRUNCATED) | "Forward `Filtered::downcast_raw` to wrapped Layer\n## Motivation\r\n\r\nI'm trying to implement a `(...TRUNCATED) | "tracing_subscriber::Layer::downcast_raw not called when filtered\n## Bug Report\r\n\r\n### Version\(...TRUNCATED) |
tokio-rs/tracing | tokio-rs__tracing_1236 | 1,236 | "diff --git a/tracing-attributes/tests/err.rs b/tracing-attributes/tests/err.rs\nindex 6c3e85dca3..c(...TRUNCATED) | 4609f22aff1ad88b81e749e2536761d6ee364d1f | [] | [] | "attributes: fix `#[instrument(err)]` with `impl Trait` return types\nThis backports PR #1233 to v0.(...TRUNCATED) | "impl Trait not allowed after updating tracing-attributes:0.1.12\n## Bug Report\r\n\r\nHey :wave: th(...TRUNCATED) |
sharkdp/fd | sharkdp__fd_1079 | 1,079 | "diff --git a/tests/testenv/mod.rs b/tests/testenv/mod.rs\nindex c17ef4b4c..8a5567e0d 100644\n--- a/(...TRUNCATED) | 218d475cb21763deaf0ecc8d46078b8f289d03a7 | [
"test_invalid_cwd"
] | ["filter::owner::owner_parsing::uid_only","exec::input::path_tests::remove_ext_dir","filter::size::t(...TRUNCATED) | Allow working directory to be nonexistent if search path is given
Fixes #1072 | "fd does not want to work when cwd is non existent\n**What version of `fd` are you using?**\r\n`fd 8(...TRUNCATED) |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 5