reincarnate -V cmdline option #926

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@yarikoptic

please allow at least to check for version consistently with previous versions.
Since -V is not used by anything else, please let it stay. You could spit out
deprecation warning meanwhile to discourage its use, but it remains the only way
to check which version of ipython is actually available from the cmdline (might
be useful to scripts/mode wrappers for editors etc)

@yarikoptic yarikoptic allow for consistent version checking with previous releases of ipython
please allow at least to check for version consistently with previous versions.
Since -V is not used by anything else, please let it stay.  You could spit out
deprecation warning meanwhile to discourage its use, but it remains the only way
to check which version of ipython is actually available from the cmdline (might
be useful to scripts/mode wrappers for editors etc)
ae2a211
@minrk
IPython member

Entirely sensible. Of course, as with most python packages, the following always works:

python -c "import IPython; print IPython.__version__"

Which you would have to do if you want your test to allow for 0.11, which lacks this fix.

@yarikoptic

grhm -- I feel silly now -- I should have indeed just relied on that ... feel free to 'close' without adopting/merging ;)

@minrk
IPython member

No worries, I think it's still valid and tiny change. No need to have excessive incompatibility, especially for methods specifically for checking compatibility.

@fperez
IPython member

+1, merge away (with rebase to avoid recursive merge for a single commit). @yarikoptic, note also that at the cmd line, --version should also work..

@minrk minrk added a commit that closed this pull request Oct 25, 2011
@yarikoptic yarikoptic restore '-V' cmdline option for printing version
Preserves compatibility with pre-0.11 call, which was broken unnecessarily.

closes gh-926
df951f4
@minrk minrk closed this in df951f4 Oct 25, 2011
@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
@yarikoptic yarikoptic restore '-V' cmdline option for printing version
Preserves compatibility with pre-0.11 call, which was broken unnecessarily.

closes gh-926
42624ba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment