Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor XDGB edge cases #1425

Merged
merged 3 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions xmtp_debug/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mod store;
/// Types shared between App Functions
mod types;

use clap::CommandFactory;
use color_eyre::eyre::{self, Result};
use directories::ProjectDirs;
use std::{fs, path::PathBuf, sync::Arc};
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
2 changes: 1 addition & 1 deletion xmtp_debug/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub static XMTP_PRODUCTION_D14N: LazyLock<Url> = LazyLock::new(|| Url::parse("")
pub static XMTP_DEV_D14N: LazyLock<Url> =
LazyLock::new(|| Url::parse("https://grpc.testnet.xmtp.network:443").unwrap());
pub static XMTP_LOCAL_D14N: LazyLock<Url> =
LazyLock::new(|| Url::parse("http://localhots:5050").unwrap());
LazyLock::new(|| Url::parse("http://localhost:5050").unwrap());

pub static XMTP_PRODUCTION_PAYER: LazyLock<Url> = LazyLock::new(|| Url::parse("").unwrap());
pub static XMTP_DEV_PAYER: LazyLock<Url> =
Expand Down
Loading