mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-30 10:56:09 +03:00
21 lines
376 B
Python
21 lines
376 B
Python
|
#!/usr/bin/env python3
|
||
|
import sys
|
||
|
from option import Option
|
||
|
|
||
|
"""
|
||
|
Format option file
|
||
|
"""
|
||
|
|
||
|
|
||
|
def main():
|
||
|
if len(sys.argv) < 2:
|
||
|
print("usage: format.py OPTION_FILE")
|
||
|
sys.exit(1)
|
||
|
for option_file in sys.argv[1:]:
|
||
|
option = Option.parse_file(option_file)
|
||
|
open(option_file, "w").write(str(option) + "\n")
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
main()
|