From a3fa588ed42a634b285366f8927df81a5df396d3 Mon Sep 17 00:00:00 2001 From: Jake Deichert Date: Mon, 23 Sep 2019 22:10:56 -0400 Subject: [PATCH] No need to show mask's author and description in help output Showing the author and description info of mask is a bit odd every time someone runs help. --- maskfile.md | 2 +- src/main.rs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/maskfile.md b/maskfile.md index ab1c955..12c54b6 100644 --- a/maskfile.md +++ b/maskfile.md @@ -10,7 +10,7 @@ > Build and run mask in development mode -**NOTE:** This uses `cargo run` to build and run `mask` in development mode. You must have a `maskfile` in the current directory (this file) and must supply a valid command for that `maskfile` (`maskfile_command`) in order to test the changes you've made to `mask`. Since you can only test against this `maskfile` (for now), you can add subcommands to the bottom and run against those instead of running one of the existing commands. +**NOTE:** This uses `cargo run` to build and run `mask` in development mode. You must have a `maskfile` in the current directory (this file) and must supply a valid command for that `maskfile` (`maskfile_command`) in order to test the changes you've made to `mask`. Since you can only test against this `maskfile` for now, you can add subcommands to the bottom and run against those instead of running one of the existing commands. **EXAMPLE:** `mask run "test -h"` - outputs the help info of this `test` command diff --git a/src/main.rs b/src/main.rs index d9df59f..5f8b88d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,7 @@ use std::env; use std::path::Path; -use clap::{ - crate_authors, crate_description, crate_name, crate_version, App, AppSettings, Arg, ArgMatches, - SubCommand, -}; +use clap::{crate_name, crate_version, App, AppSettings, Arg, ArgMatches, SubCommand}; use colored::*; use mask::command::Command; @@ -15,8 +12,6 @@ fn main() { .setting(AppSettings::VersionlessSubcommands) .setting(AppSettings::SubcommandRequired) .version(crate_version!()) - .author(crate_authors!()) - .about(crate_description!()) .arg(custom_maskfile_path_arg()); let (maskfile, maskfile_path) = find_maskfile();