Skip to content

Commit

Permalink
Minor XDGB edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mkysel committed Dec 16, 2024
1 parent a090c87 commit e553305
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions xmtp_debug/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ mod types;
use color_eyre::eyre::{self, Result};
use directories::ProjectDirs;
use std::{fs, path::PathBuf, sync::Arc};
use clap::CommandFactory;
use xmtp_cryptography::utils::LocalWallet;
use xmtp_id::associations::unverified::UnverifiedRecoverableEcdsaSignature;
use xmtp_id::associations::{generate_inbox_id, unverified::UnverifiedSignature};
Expand Down Expand Up @@ -95,6 +96,11 @@ impl App {
} = opts;
debug!(fdlimit = get_fdlimit());

if cmd.is_none() && !clear {
AppOpts::command().print_help()?;
eyre::bail!("No subcommand was specified");
}

if let Some(cmd) = cmd {
match cmd {
Generate(g) => generate::Generate::new(g, backend, db).run().await,
Expand Down
2 changes: 1 addition & 1 deletion xmtp_debug/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub struct Generate {
#[arg(long, short)]
pub amount: usize,
/// Specify amount of random identities to invite to group
#[arg(long, short)]
#[arg(long)]
pub invite: Option<usize>,
#[command(flatten)]
pub message_opts: MessageGenerateOpts,
Expand Down

0 comments on commit e553305

Please sign in to comment.