xxh/xonssh_xxh/settings.py

16 lines
322 B
Python
Raw Normal View History

2020-02-16 14:11:13 +00:00
import sys
2020-02-08 21:57:47 +00:00
global_settings = {
2020-02-16 16:44:51 +00:00
'XXH_VERSION': '0.3.0'
2020-02-08 21:57:47 +00:00
}
if __name__ == "__main__":
2020-02-13 19:16:03 +00:00
2020-02-08 21:57:47 +00:00
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)