Skip to content
Snippets Groups Projects
Commit 940fb616 authored by Yohan Jarosz's avatar Yohan Jarosz
Browse files

supress output of version every time IMP script is launch

parent 1faec514
No related branches found
No related tags found
No related merge requests found
......@@ -90,10 +90,14 @@ def select(title, questions):
CURRENT_PATH = Path('.').abspath()
if __name__ == '__main__':
args = docopt(__doc__, version=subprocess.call(
def get_version():
return subprocess.check_output(
['git', '--no-pager', 'log', '-n', '1', '--pretty=format:%H']
), options_first=True)
)
if __name__ == '__main__':
args = docopt(__doc__, version=get_version(), options_first=True)
# get config file from cache
config_files = get_config_cache().split()
# delete if some config files are removed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment