File indexing completed on 2024-04-06 12:21:00
0001
0002
0003 from __future__ import print_function
0004 import sys
0005
0006 def main():
0007 if len(sys.argv) < 2:
0008 print("Usage: %s mode_inv" % sys.argv[0])
0009 return
0010
0011 mode_inv = int(sys.argv[1])
0012
0013 if mode_inv > 15:
0014 raise Exception("mode_inv must be 0-15")
0015
0016 printme = []
0017 if (mode_inv & 1): printme.append("1")
0018 if (mode_inv & 2): printme.append("2")
0019 if (mode_inv & 4): printme.append("3")
0020 if (mode_inv & 8): printme.append("4")
0021 printme = "-".join(printme)
0022
0023 print("{0:s}".format(printme))
0024 return
0025
0026
0027
0028 if __name__ == '__main__':
0029
0030 main()