You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-26 10:44:51 +03:00
Migrate to clap v4
This commit is contained in:
@@ -24,7 +24,7 @@ use tracing::info;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
pub(super) struct Options {
|
||||
#[clap(subcommand)]
|
||||
#[command(subcommand)]
|
||||
subcommand: Subcommand,
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ enum Subcommand {
|
||||
/// Perform an HTTP request with the default HTTP client
|
||||
Http {
|
||||
/// Show response headers
|
||||
#[clap(long, short = 'I')]
|
||||
#[arg(long, short = 'I')]
|
||||
show_headers: bool,
|
||||
|
||||
/// Parse the response as JSON
|
||||
#[clap(long, short = 'j')]
|
||||
#[arg(long, short = 'j')]
|
||||
json: bool,
|
||||
|
||||
/// URI where to perform a GET request
|
||||
|
||||
Reference in New Issue
Block a user