Skip to content

DNU shouldn't throw with bad args #686

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
richlander opened this issue Jun 21, 2015 · 4 comments
Closed

DNU shouldn't throw with bad args #686

richlander opened this issue Jun 21, 2015 · 4 comments

Comments

@richlander
Copy link
Member

DNU throws with bad args. It should fail more gracefully.

dotnet-mbp:dnulist richlander$ dnu upgrade
Specify --help for a list of available options and commands.
System.Exception: TODO: Error: unrecognized argument 'upgrade'
  at Microsoft.Framework.Runtime.Common.CommandLine.CommandLineApplication.HandleUnexpectedArg (Microsoft.Framework.Runtime.Common.CommandLine.CommandLineApplication command, System.String[] args, Int32 index, System.String argTypeName) [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.Runtime.Common.CommandLine.CommandLineApplication.Execute (System.String[] args) [0x00000] in <filename unknown>:0 
  at Microsoft.Framework.PackageManager.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
@davidfowl
Copy link
Member

You just mean you don't want to see a stack trace.

@richlander
Copy link
Member Author

Yes.

@Eilon
Copy link
Member

Eilon commented Jun 24, 2015

Basically the same as aspnet/dnx#1923.

@muratg
Copy link
Contributor

muratg commented Jul 20, 2015

Dup of aspnet/dnx#1923

@muratg muratg closed this as completed Jul 20, 2015
dougbu pushed a commit to dotnet-maestro-bot/AspNetCore that referenced this issue Sep 11, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants