Skip to content

Commit

Permalink
Add real --version
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Nov 18, 2020
1 parent 47fbfc5 commit 78dc334
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tokens/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ solana-runtime = { path = "../runtime", version = "1.5.0" }
solana-sdk = { path = "../sdk", version = "1.5.0" }
solana-stake-program = { path = "../programs/stake", version = "1.5.0" }
solana-transaction-status = { path = "../transaction-status", version = "1.5.0" }
solana-version = { path = "../version", version = "1.5.0" }
tempfile = "3.1.0"
thiserror = "1.0"

Expand Down
10 changes: 6 additions & 4 deletions tokens/src/arg_parser.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use crate::args::{
Args, BalancesArgs, Command, DistributeTokensArgs, StakeArgs, TransactionLogArgs,
};
use clap::{value_t, value_t_or_exit, App, Arg, ArgMatches, SubCommand};
use clap::{
crate_description, crate_name, value_t, value_t_or_exit, App, Arg, ArgMatches, SubCommand,
};
use solana_clap_utils::{
input_parsers::value_of,
input_validators::{is_amount, is_valid_pubkey, is_valid_signer},
Expand All @@ -19,9 +21,9 @@ where
T: Into<OsString> + Clone,
{
let default_config_file = CONFIG_FILE.as_ref().unwrap();
App::new("solana-tokens")
.about("about")
.version("version")
App::new(crate_name!())
.about(crate_description!())
.version(solana_version::version!())
.arg(
Arg::with_name("config_file")
.long("config")
Expand Down

0 comments on commit 78dc334

Please sign in to comment.