Skip to content

Commit

Permalink
Merge pull request #32 from jakedeichert/remove-author-and-desc-from-…
Browse files Browse the repository at this point in the history
…help

No need to show mask's author and description in help output
  • Loading branch information
jacobdeichert authored Sep 24, 2019
2 parents 1884caa + a3fa588 commit 71e5b35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion maskfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 1 addition & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit 71e5b35

Please sign in to comment.