commit | e9fae63c1252ff3566a61e23d4170ad0073c7517 | [log] [tgz] |
---|---|---|
author | Masayoshi Kobayashi <masayosi@onos8vpc.(none)> | Tue Jan 15 00:09:03 2013 +0000 |
committer | Masayoshi Kobayashi <masayosi@onos8vpc.(none)> | Tue Jan 15 00:09:03 2013 +0000 |
tree | 2870cd109bca6e06e7f8e0b536041e41e7acdabb | |
parent | 06799b31d6c7a8ca7f3dea39fb191d5dc6e9e80c [diff] |
add debug '-d' option for restapi3.py
diff --git a/web/restapi3.py b/web/restapi3.py index 86e9d66..ea070f5 100755 --- a/web/restapi3.py +++ b/web/restapi3.py
@@ -239,7 +239,7 @@ return resp if __name__ == "__main__": - if sys.argv[1] == "-d": + if len(sys.argv) > 1 and sys.argv[1] == "-d": print "-- query all switches --" query_switch() print "-- query all links --"