Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__main__.py: fetch manticore version from installed module #1310

Merged
merged 1 commit into from
Dec 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions manticore/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
import logging
import sys

from .utils import config, log
import pkg_resources

from .core.manticore import ManticoreBase
from .utils import config, log

consts = config.get_group('main')
consts.add('recursionlimit', default=10000,
Expand Down Expand Up @@ -78,7 +80,9 @@ def positive(value):
parser.add_argument('--workspace', type=str, default=None,
help=("A folder name for temporaries and results."
"(default mcore_?????)"))
parser.add_argument('--version', action='version', version='Manticore 0.2.3',

current_version = pkg_resources.get_distribution("manticore").version
parser.add_argument('--version', action='version', version=f'Manticore {current_version}',
help='Show program version information')
parser.add_argument('--config', type=str,
help='Manticore config file (.yml) to use. (default config file pattern is: ./[.]m[anti]core.yml)')
Expand Down