#!/usr/bin/python3

import sys
from SystemLib import ogHelp
from UEFILib import ogNvramSetOrder

if 2 == len (sys.argv) and 'help' == sys.argv[1]:
    #parser.print_help() sale en inglés aunque la locale indique otra cosa
    ogHelp ('ogNvramSetOrder', 'ogNvramSetOrder Num_order1 [ Num_order2 ] ...', ['ogNvramSetOrder 1 3'])
    sys.exit (0)

ret = ogNvramSetOrder (sys.argv[1:])
if ret is not None:
    if   ret == True: sys.exit (0)
    elif ret == False: sys.exit (1)
    else: print (ret)
