libre_cli/
args.rs

1use std::path::PathBuf;
2
3use clap::{Parser, Subcommand};
4
5#[derive(Parser)]
6#[clap(author, version, about)]
7pub struct Args {
8    /// Path to the keypair file.
9    #[arg(short, long, global = true)]
10    pub keypair_path: Option<PathBuf>,
11
12    /// RPC URL for the Solana cluster.
13    #[arg(short, long, global = true)]
14    pub rpc_url: Option<String>,
15
16    #[clap(subcommand)]
17    pub command: Commands,
18}
19
20#[derive(Clone, Subcommand)]
21pub enum Commands {
22    Hashlist {
23        /// Ticker of the 'SPL-20' token.
24        ticker: String,
25    },
26}