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

Already on GitHub? Sign in to your account

Default unknown arguments on commands to -h? #760

envygeeks opened this Issue Nov 23, 2012 · 0 comments


None yet
2 participants

envygeeks commented Nov 23, 2012

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