File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public static Command Create()
4848 {
4949 Name = "references" ,
5050 Description = CoreStrings . RefreshCommandArgumentDescription ,
51- Arity = ArgumentArity . OneOrMore
51+ Arity = ArgumentArity . ZeroOrMore
5252 } ) ;
5353 command . AddOption ( CommonOptions . ProjectOption ( ) ) ;
5454 command . AddOption ( new Option (
@@ -79,7 +79,7 @@ public static Command Create()
7979
8080 public async Task RefreshAsync ( bool dryRun , string [ ] references )
8181 {
82- var refsToRefresh = references . Length == 0 ? Project . GetItems ( ProtobufElement ) . Where ( p => p . HasMetadata ( SourceUrlElement ) ) : ResolveReferences ( references ) ;
82+ var refsToRefresh = references == null || references . Length == 0 ? Project . GetItems ( ProtobufElement ) . Where ( p => p . HasMetadata ( SourceUrlElement ) ) : ResolveReferences ( references ) ;
8383
8484 foreach ( var reference in refsToRefresh )
8585 {
You can’t perform that action at this time.
0 commit comments