You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/nuget-inspector/Options.cs
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,10 +26,13 @@ public class Options
26
26
description:"Path to a nuget.config file to use, ignoring all other nuget.config.")]
27
27
publicstringNugetConfigPath="";
28
28
29
+
// If True, return extra metadata details when available such as SHA512
29
30
publicboolWithDetails;
30
31
publicboolWithFallback;
32
+
publicboolWithNuGetOrg;
31
33
publicboolShowHelp;
32
34
publicboolVerbose;
35
+
publicboolDebug;
33
36
publicboolShowVersion;
34
37
publicboolShowAbout;
35
38
@@ -63,12 +66,18 @@ public List<string> AsCliList()
63
66
if(Verbose)
64
67
options.Add("--verbose");
65
68
69
+
if(Debug)
70
+
options.Add("--debug");
71
+
66
72
if(WithDetails)
67
73
options.Add("--with-details");
68
74
69
75
if(WithFallback)
70
76
options.Add("--with-fallback");
71
77
78
+
if(WithNuGetOrg)
79
+
options.Add("--with-nuget-org");
80
+
72
81
returnoptions;
73
82
}
74
83
@@ -96,10 +105,15 @@ public List<string> AsCliList()
96
105
command_options.Add(prototype:"with-fallback",description:"Optionally use a plain XML project file parser as fallback from failures.",
97
106
action: value =>options.WithDetails=value!=null);
98
107
108
+
command_options.Add(prototype:"with-nuget-org",description:"Optionally use the officila, public nuget.org API as a fallback in addition to nuget.config-configured API sources.",
109
+
action: value =>options.WithNuGetOrg=value!=null);
110
+
99
111
command_options.Add(prototype:"h|help",description:"Show this message and exit.",
100
112
action: value =>options.ShowHelp=value!=null);
101
113
command_options.Add(prototype:"v|verbose",description:"Display more verbose output.",
102
114
action: value =>options.Verbose=value!=null);
115
+
command_options.Add(prototype:"debug",description:"Display very verbose debug output.",
116
+
action: value =>options.Debug=value!=null);
103
117
command_options.Add(prototype:"version",description:"Display nuget-inspector version and exit.",
104
118
action: value =>options.ShowVersion=value!=null);
105
119
command_options.Add(prototype:"about",description:"Display information about nuget-inspector and exit.",
0 commit comments