xxh/xonssh_xxh/settings.py
2020-02-16 19:44:51 +03:00

16 lines
No EOL
322 B
Python

import sys
global_settings = {
'XXH_VERSION': '0.3.0'
}
if __name__ == "__main__":
if len(sys.argv) > 1:
setting_name = sys.argv[1]
if setting_name in global_settings:
print(global_settings[setting_name])
else:
sys.exit(1)
else:
print(global_settings)