From 5bc49b76e215332f8d711aba5b355ec17eaa1989 Mon Sep 17 00:00:00 2001 From: Mouse Date: Fri, 8 May 2026 20:51:15 +0100 Subject: [PATCH 1/2] Print usage message to stdout. Stdout is the "correct" destination for an explicitly requested usage message, so it can be conveniently piped through a pager. --- src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 893ed0d..de05e46 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -304,14 +304,14 @@ pub trait Options { } } - eprintln!("Usage: {}{} [OPTIONS]", args[0], command_str); - eprintln!(); - eprintln!("{}", command.self_usage()); + println!("Usage: {}{} [OPTIONS]", args[0], command_str); + println!(); + println!("{}", command.self_usage()); if let Some(cmds) = command.self_command_list() { - eprintln!(); - eprintln!("Available commands:"); - eprintln!("{}", cmds); + println!(); + println!("Available commands:"); + println!("{}", cmds); } exit(0); From e11ad7fc80f02672e9476c1445427d457575b373 Mon Sep 17 00:00:00 2001 From: Mouse Date: Sat, 1 Aug 2026 08:12:35 +0100 Subject: [PATCH 2/2] README now shows how to use this fork --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f181a08..3f35df3 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,12 @@ Option parser with custom derive support ## Building -To include `gumdrop` in your project, add the following to your `Cargo.toml`: +To this fork, include `gumdrop` in your project, add the following to your `Cargo.toml`: ```toml [dependencies] -gumdrop = "0.8" +# gumdrop = "0.8" +gumdrop = { git = "http://github.com/mousefad/rust-gumdrop.git" } ``` ## License