Skip to content

Commit

Permalink
imp(parser.rs): Make Parser's create_usage public allowing to have fu…
Browse files Browse the repository at this point in the history
…nction outside the parser to generate the help
  • Loading branch information
hgrecco committed Apr 13, 2016
1 parent 9b23e7e commit d51945f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ impl<'a, 'b> Parser<'a, 'b> where 'a: 'b {
// Creates a usage string if one was not provided by the user manually. This happens just
// after all arguments were parsed, but before any subcommands have been parsed
// (so as to give subcommands their own usage recursively)
fn create_usage(&self, used: &[&str]) -> String {
pub fn create_usage(&self, used: &[&str]) -> String {
debugln!("fn=create_usage;");
let mut usage = String::with_capacity(75);
usage.push_str("USAGE:\n ");
Expand Down

0 comments on commit d51945f

Please sign in to comment.