[Pkg-privacy-commits] [obfsproxy] 173/353: Add a --version switch.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:01:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository obfsproxy.

commit f2e307cc50238b46380f7c57391ac2a06efab266
Author: George Kadianakis <desnacked at riseup.net>
Date:   Mon Jul 15 17:39:16 2013 +0300

    Add a --version switch.
---
 ChangeLog                | 1 +
 obfsproxy/pyobfsproxy.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 3e072f0..b0ab4f4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@ Changes in version 0.2.3 - ??
  - Fix a bug in the SOCKS code. An assertion would trigger if
    the SOCKS destination sent traffic before obfsproxy did.
    Fixes #9239.
+ - Add a --version switch. Fixes #9255.
 
 Changes in version 0.2.2 - 2013-04-15
  - Fix a bug where the CLI compatibility patch that was introduced
diff --git a/obfsproxy/pyobfsproxy.py b/obfsproxy/pyobfsproxy.py
index 05214bb..31ea395 100755
--- a/obfsproxy/pyobfsproxy.py
+++ b/obfsproxy/pyobfsproxy.py
@@ -33,6 +33,7 @@ def set_up_cli_parsing():
         description='Obfsproxy: A pluggable transports proxy written in Python')
     subparsers = parser.add_subparsers(title='supported transports', dest='name')
 
+    parser.add_argument('-v', '--version', action='version', version=__version__)
     parser.add_argument('--log-file', help='set logfile')
     parser.add_argument('--log-min-severity',
                         choices=['error', 'warning', 'info', 'debug'],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfsproxy.git



More information about the Pkg-privacy-commits mailing list