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

attempt to fix errors related to clap #158

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 11 additions & 11 deletions crates/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,21 @@ enum Args {
struct Install {
/// Changes the path that the extension is copied to. This will not
/// activate the extension unless `ini_path` is also passed.
#[clap(long)]
#[arg(long)]
install_dir: Option<PathBuf>,
/// Path to the `php.ini` file to update with the new extension.
#[clap(long)]
#[arg(long)]
ini_path: Option<PathBuf>,
/// Installs the extension but doesn't enable the extension in the `php.ini`
/// file.
#[clap(long)]
#[arg(long)]
disable: bool,
/// Whether to install the release version of the extension.
#[clap(long)]
#[arg(long)]
release: bool,
/// Path to the Cargo manifest of the extension. Defaults to the manifest in
/// the directory the command is called.
#[clap(long)]
#[arg(long)]
manifest: Option<PathBuf>,
}

Expand All @@ -112,14 +112,14 @@ struct Remove {
/// Changes the path that the extension will be removed from. This will not
/// remove the extension from a configuration file unless `ini_path` is also
/// passed.
#[clap(long)]
#[arg(long)]
install_dir: Option<PathBuf>,
/// Path to the `php.ini` file to remove the extension from.
#[clap(long)]
#[arg(long)]
ini_path: Option<PathBuf>,
/// Path to the Cargo manifest of the extension. Defaults to the manifest in
/// the directory the command is called.
#[clap(long)]
#[arg(long)]
manifest: Option<PathBuf>,
}

Expand All @@ -131,18 +131,18 @@ struct Stubs {
ext: Option<PathBuf>,
/// Path used to store generated stub file. Defaults to writing to
/// `<ext-name>.stubs.php` in the current directory.
#[clap(short, long)]
#[arg(short, long)]
out: Option<PathBuf>,
/// Print stubs to stdout rather than write to file. Cannot be used with
/// `out`.
#[clap(long, conflicts_with = "out")]
#[arg(long, conflicts_with = "out")]
stdout: bool,
/// Path to the Cargo manifest of the extension. Defaults to the manifest in
/// the directory the command is called.
///
/// This cannot be provided alongside the `ext` option, as that option
/// provides a direct path to the extension shared library.
#[clap(long, conflicts_with = "ext")]
#[arg(long, conflicts_with = "ext")]
manifest: Option<PathBuf>,
}

Expand Down