Refactor into __main__ block
This commit is contained in:
parent
e02af611ad
commit
b0130c27a6
1 changed files with 943 additions and 943 deletions
|
@ -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] == '/?' ):
|
||||
|
|
Loading…
Reference in a new issue