@@ -89,21 +89,21 @@ enum Args {
89
89
struct Install {
90
90
/// Changes the path that the extension is copied to. This will not
91
91
/// activate the extension unless `ini_path` is also passed.
92
- #[ clap ( long) ]
92
+ #[ arg ( long) ]
93
93
install_dir : Option < PathBuf > ,
94
94
/// Path to the `php.ini` file to update with the new extension.
95
- #[ clap ( long) ]
95
+ #[ arg ( long) ]
96
96
ini_path : Option < PathBuf > ,
97
97
/// Installs the extension but doesn't enable the extension in the `php.ini`
98
98
/// file.
99
- #[ clap ( long) ]
99
+ #[ arg ( long) ]
100
100
disable : bool ,
101
101
/// Whether to install the release version of the extension.
102
- #[ clap ( long) ]
102
+ #[ arg ( long) ]
103
103
release : bool ,
104
104
/// Path to the Cargo manifest of the extension. Defaults to the manifest in
105
105
/// the directory the command is called.
106
- #[ clap ( long) ]
106
+ #[ arg ( long) ]
107
107
manifest : Option < PathBuf > ,
108
108
}
109
109
@@ -112,14 +112,14 @@ struct Remove {
112
112
/// Changes the path that the extension will be removed from. This will not
113
113
/// remove the extension from a configuration file unless `ini_path` is also
114
114
/// passed.
115
- #[ clap ( long) ]
115
+ #[ arg ( long) ]
116
116
install_dir : Option < PathBuf > ,
117
117
/// Path to the `php.ini` file to remove the extension from.
118
- #[ clap ( long) ]
118
+ #[ arg ( long) ]
119
119
ini_path : Option < PathBuf > ,
120
120
/// Path to the Cargo manifest of the extension. Defaults to the manifest in
121
121
/// the directory the command is called.
122
- #[ clap ( long) ]
122
+ #[ arg ( long) ]
123
123
manifest : Option < PathBuf > ,
124
124
}
125
125
@@ -131,18 +131,18 @@ struct Stubs {
131
131
ext : Option < PathBuf > ,
132
132
/// Path used to store generated stub file. Defaults to writing to
133
133
/// `<ext-name>.stubs.php` in the current directory.
134
- #[ clap ( short, long) ]
134
+ #[ arg ( short, long) ]
135
135
out : Option < PathBuf > ,
136
136
/// Print stubs to stdout rather than write to file. Cannot be used with
137
137
/// `out`.
138
- #[ clap ( long, conflicts_with = "out" ) ]
138
+ #[ arg ( long, conflicts_with = "out" ) ]
139
139
stdout : bool ,
140
140
/// Path to the Cargo manifest of the extension. Defaults to the manifest in
141
141
/// the directory the command is called.
142
142
///
143
143
/// This cannot be provided alongside the `ext` option, as that option
144
144
/// provides a direct path to the extension shared library.
145
- #[ clap ( long, conflicts_with = "ext" ) ]
145
+ #[ arg ( long, conflicts_with = "ext" ) ]
146
146
manifest : Option < PathBuf > ,
147
147
}
148
148
0 commit comments