Skip to content

Commit b329629

Browse files
committed
fix accidental breaking change
1 parent 21bb665 commit b329629

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dsc/src/args.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ pub enum ConfigSubCommand {
175175
pub enum ExtensionSubCommand {
176176
#[clap(name = "list", about = t!("args.listExtensionAbout").to_string())]
177177
List {
178-
#[clap(short = 'n', long, help = t!("args.extensionName").to_string())]
178+
/// Optional extension name to filter the list
179179
extension_name: Option<String>,
180180
#[clap(short = 'o', long, help = t!("args.outputFormat").to_string())]
181181
output_format: Option<ListOutputFormat>,
@@ -186,7 +186,7 @@ pub enum ExtensionSubCommand {
186186
pub enum FunctionSubCommand {
187187
#[clap(name = "list", about = t!("args.listFunctionAbout").to_string())]
188188
List {
189-
#[clap(short = 'n', long, help = t!("args.functionName").to_string())]
189+
/// Optional function name to filter the list
190190
function_name: Option<String>,
191191
#[clap(short = 'o', long, help = t!("args.outputFormat").to_string())]
192192
output_format: Option<ListOutputFormat>,
@@ -197,7 +197,7 @@ pub enum FunctionSubCommand {
197197
pub enum ResourceSubCommand {
198198
#[clap(name = "list", about = t!("args.listAbout").to_string())]
199199
List {
200-
#[clap(short = 'n', long, help = t!("args.resourceName").to_string())]
200+
/// Optional resource name to filter the list
201201
resource_name: Option<String>,
202202
/// Optional adapter filter to apply to the list of resources
203203
#[clap(short = 'a', long = "adapter", help = t!("args.adapter").to_string())]

dsc/tests/dsc_function_list.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Describe 'Tests for function list subcommand' {
1313
}
1414

1515
It 'Should filter with wildcard' {
16-
$out = dsc function list -n 'resource*' | ConvertFrom-Json
16+
$out = dsc function list 'resource*' | ConvertFrom-Json
1717
$LASTEXITCODE | Should -Be 0
1818
$out.category | Should -BeExactly 'Deployment'
1919
$out.name | Should -BeExactly 'resourceId'

0 commit comments

Comments
 (0)