mirror of
https://github.com/xxh/xxh
synced 2024-11-24 12:53:03 +00:00
15 lines
319 B
Python
15 lines
319 B
Python
|
import sys
|
||
|
|
||
|
global_settings = {
|
||
|
'XXH_VERSION': '0.1'
|
||
|
}
|
||
|
|
||
|
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)
|