ogclone-engine/client/shared/functions/ogListHardwareInfo

18 lines
470 B
Python

#!/usr/bin/python3
import sys
from SystemLib import ogHelp
from InventoryLib import ogListHardwareInfo
if 2 == len (sys.argv) and 'help' == sys.argv[1]:
#parser.print_help() sale en inglés aunque la locale indique otra cosa
ogHelp ('ogListHardwareInfo', 'ogListHardwareInfo', ['ogListHardwareInfo'])
sys.exit (0)
ret = ogListHardwareInfo()
if ret is not None:
if ret == True: sys.exit (0)
elif ret == False: sys.exit (1)
else: print (ret)