command-line suggestions #561

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
1 participant
@minrk
Member

minrk commented Jul 6, 2011

The most likely mistakes people will make with the new command-line args are:

ipython -pdb # single leading '-' for flag, which requires '--'
and ipython --gui=foo # leading '-' on assignment

This commit adds a suggestion to the error message in these two cases for arguments that would otherwise be valid.

So ipython --pylab=qt will fail with:
Invalid argument: '--pylab=qt'. Did you mean 'pylab=qt'?

etc.

minrk added some commits Jul 6, 2011

add suggestions for most common errors in kv_loader
The most likely mistakes people will make are:

ipython -pdb # single leading '-' for flag, which requires '--'
and ipython --gui=foo # leading '-' on assignment

This adds a suggestion to the error message in these two cases for otherwise valid arguments.
add parameter note to aliases help
the form of parameters (no leading '-', etc.) is explained in the
key-value section help, but this is not printed unless '--help-all' is given, so the explanation is added to aliases as well.
@minrk

This comment has been minimized.

Show comment
Hide comment
@minrk

minrk Jul 7, 2011

Member

closed by 3c385ef, since these cases are now valid.

Member

minrk commented Jul 7, 2011

closed by 3c385ef, since these cases are now valid.

@minrk minrk closed this Jul 7, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment