Refactor into __main__ block

This commit is contained in:
Reid 'arrdem' McKenzie 2021-10-11 21:26:06 -06:00
parent e02af611ad
commit b0130c27a6

View file

@ -40,7 +40,7 @@ import smbus
#
# <order> selects which Cluster CTRL devices matches that <order> number
if __name__ == "__main__":
args = len(sys.argv)
if ( args == 1 or sys.argv[1] == 'help' or sys.argv[1] == '--help' or sys.argv[1] == '-h' or sys.argv[1] == '/?' ):