Skip to content

Commit

Permalink
[ bump ] Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Sep 5, 2019
1 parent e8f68f8 commit 748fd21
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Change Log

# unreleased
# 0.3.10

+ Remove winapi 0.2.8 dependency caused by `wrap_help`
feature of `clap`
+ Bump dependencies

# 0.3.9

Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "minitt"
version = "0.3.9"
version = "0.3.10"
authors = ["ice1000 <ice1000kotlin@foxmail.com>"]
edition = "2018"
license = "Apache-2.0"
Expand All @@ -22,10 +22,10 @@ is-it-maintained-issue-resolution = { repository = "owo-lang/minitt-rs" }
is-it-maintained-open-issues = { repository = "owo-lang/minitt-rs" }

[dependencies]
pest = { version = "2.1.1", features = ["pretty-print"], optional = true }
pest = { version = "2.1.2", features = ["pretty-print"], optional = true }
pest_derive = { version = "2.1.0", optional = true }
clap = { version = "2.33.0", optional = true }
structopt = { version = "0.2", optional = true }
structopt = { version = "0.3", optional = true }
rustyline = { version = "5.0.0", optional = true }
either = "1.5"

Expand Down
13 changes: 5 additions & 8 deletions src/cli/args.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use clap::{App, Shell};
use clap::{App, AppSettings, Shell};
use structopt::StructOpt;

#[derive(StructOpt)]
#[structopt(
about,
name = "minittc",
rename_all = "kebab-case",
raw(setting = "structopt::clap::AppSettings::ColoredHelp")
global_settings(&[AppSettings::ColoredHelp]),
)]
pub struct CliOptions {
/// Parses but do not type-check the input file
Expand Down Expand Up @@ -34,15 +34,15 @@ pub struct CliOptions {
}

#[derive(StructOpt)]
#[structopt(rename_all = "kebab-case")]
enum GenShellSubCommand {
/// Prints completion scripts for your shell
Completion {
/// Prints completion scripts for your shell
#[structopt(
name = "generate-completion-script-for",
alias = "gcf",
raw(possible_values = "&Shell::variants()", case_insensitive = "true")
possible_values(&Shell::variants()),
case_insensitive(true)
)]
shell: Shell,
},
Expand All @@ -54,9 +54,6 @@ fn app<'a, 'b>() -> App<'a, 'b> {
// Introduced a variable because stupid CLion :(
let app: App = CliOptions::clap();
app.after_help(extra_help)
.version(env!("CARGO_PKG_VERSION"))
.author(env!("CARGO_PKG_AUTHORS"))
.about(env!("CARGO_PKG_DESCRIPTION"))
}

pub fn pre() -> CliOptions {
Expand Down

0 comments on commit 748fd21

Please sign in to comment.