Browse Source

Rename application args to cmdargs to avoid confusion

Alois Mahdal 10 years ago
parent
commit
ea6833af9d
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      include/gmon.py

+ 5
- 5
include/gmon.py View File

66
 
66
 
67
 class Subcommand(object):
67
 class Subcommand(object):
68
 
68
 
69
-    def __init__(self, args, pluginpath):
70
-        self.plugindata = PluginData(args)
71
-        self.name = args['<command>']
69
+    def __init__(self, cmdargs, pluginpath):
70
+        self.plugindata = PluginData(cmdargs)
71
+        self.name = cmdargs['<command>']
72
         self._load_plugin(pluginpath)
72
         self._load_plugin(pluginpath)
73
 
73
 
74
     def _load_plugin(self, pluginpath):
74
     def _load_plugin(self, pluginpath):
93
 
93
 
94
 class App:
94
 class App:
95
 
95
 
96
-    def __init__(self, args):
96
+    def __init__(self, cmdargs):
97
         self._set_pluginpath()
97
         self._set_pluginpath()
98
-        self.subcommand = Subcommand(args, self.pluginpath)
98
+        self.subcommand = Subcommand(cmdargs, self.pluginpath)
99
 
99
 
100
     def _set_pluginpath(self):
100
     def _set_pluginpath(self):
101
         mypath = os.path.dirname(os.path.realpath(sys.argv[0]))
101
         mypath = os.path.dirname(os.path.realpath(sys.argv[0]))