Default unknown arguments on commands to -h? #760

Open
envygeeks opened this Issue Nov 23, 2012 · 0 comments

Projects

None yet

2 participants

@envygeeks

I think it would be great if Pry were to default arguments for commands (example ls -C MyClass) to default to help like normal Unix/Linux commands most of the time do. This avoids ambiguous errors that can sometimes happen (for example with the ls -C MyClass example I gave) where it points directly to a Pry source file.

What I mean is, it would be awesome if pry just took in the -C and showed a small error at the top (something to the effect of "Unknown argument" and showed the help.) Or, just "Unknown argument", instead of letting it fall to an exception that can lead users in the wrong direction...like in the example I gave (if they don't pay close enough attention.)

@rf- rf- added the feature label Apr 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment