@@ -183,6 +183,7 @@ it is possible that incomplete package lists are returned from a command
183183 foreach ( var pkg in NugetList . GetPackages ( config , _nugetLogger , _fileSystem ) )
184184 {
185185 var package = pkg ; // for lamda access
186+ string packageArgumentsUnencrypted = null ;
186187
187188 ChocolateyPackageMetadata packageLocalMetadata ;
188189 string packageInstallLocation = null ;
@@ -207,6 +208,10 @@ it is possible that incomplete package lists are returned from a command
207208 }
208209 }
209210
211+ if ( ! string . IsNullOrWhiteSpace ( packageInfo . Arguments ) )
212+ {
213+ packageArgumentsUnencrypted = "\n Remembered Package Arguments: " + ( packageInfo . Arguments . contains ( " --" ) && packageInfo . Arguments . to_string ( ) . Length > 4 ? packageInfo . Arguments : NugetEncryptionUtility . DecryptString ( packageInfo . Arguments ) ) ;
214+ }
210215 }
211216
212217 if ( ! config . QuietOutput )
@@ -231,7 +236,7 @@ Package url{6}
231236 Tags: {9}
232237 Software Site: {10}
233238 Software License: {11}{12}{13}{14}{15}{16}
234- Description: {17}{18}
239+ Description: {17}{18}{19}
235240" . FormatWith (
236241 package . Title . EscapeCurlyBraces ( ) ,
237242 package . Published . GetValueOrDefault ( ) . UtcDateTime . ToShortDateString ( ) ,
@@ -265,7 +270,8 @@ Package url{6}
265270 ! string . IsNullOrWhiteSpace ( package . BugTrackerUrl . ToStringSafe ( ) ) ? "{0} Issues: {1}" . FormatWith ( Environment . NewLine , package . BugTrackerUrl . ToStringSafe ( ) ) : string . Empty ,
266271 package . Summary != null && ! string . IsNullOrWhiteSpace ( package . Summary . ToStringSafe ( ) ) ? "\r \n Summary: {0}" . FormatWith ( package . Summary . EscapeCurlyBraces ( ) . ToStringSafe ( ) ) : string . Empty ,
267272 package . Description . EscapeCurlyBraces ( ) . Replace ( "\n " , "\n " ) . Replace ( "\n " , "\n " ) ,
268- ! string . IsNullOrWhiteSpace ( package . ReleaseNotes . ToStringSafe ( ) ) ? "{0} Release Notes: {1}" . FormatWith ( Environment . NewLine , package . ReleaseNotes . EscapeCurlyBraces ( ) . Replace ( "\n " , "\n " ) . Replace ( "\n " , "\n " ) ) : string . Empty
273+ ! string . IsNullOrWhiteSpace ( package . ReleaseNotes . ToStringSafe ( ) ) ? "{0} Release Notes: {1}" . FormatWith ( Environment . NewLine , package . ReleaseNotes . EscapeCurlyBraces ( ) . Replace ( "\n " , "\n " ) . Replace ( "\n " , "\n " ) ) : string . Empty ,
274+ packageArgumentsUnencrypted != null ? packageArgumentsUnencrypted : string . Empty
269275 ) ) ;
270276
271277
0 commit comments