Property changes on: .
___________________________________________________________________
Name: svn:ignore
- build
dist
*.egg-info
MANIFEST
*.pyc
+ build
dist
*.egg-info
MANIFEST
*.pyc
.settings
.project
.pydevproject
|
|
|
|
| 135 | 135 | """ |
| 136 | 136 | def error(self, msg): |
| 137 | 137 | pass |
| | 138 | |
| | 139 | def _process_args(self, largs, rargs, values): |
| | 140 | """overrides OptionParser._process_args to just handle default |
| | 141 | options and ignore args and other options. With the super class's |
| | 142 | version, parsing stops at the first unrecognized option. |
| | 143 | """ |
| | 144 | while rargs: |
| | 145 | arg = rargs[0] |
| | 146 | try: |
| | 147 | if arg[0:2] == "--" and len(arg) > 2: |
| | 148 | # process a single long option (possibly with value(s)) |
| | 149 | # the superclass code pops the arg off rargs |
| | 150 | self._process_long_opt(rargs, values) |
| | 151 | elif arg[:1] == "-" and len(arg) > 1: |
| | 152 | # process a cluster of short options (possibly with |
| | 153 | # value(s) for the last one only) |
| | 154 | # the superclass code pops the arg off rargs |
| | 155 | self._process_short_opts(rargs, values) |
| | 156 | else: |
| | 157 | # it's either a non-default option or an arg |
| | 158 | # either way, add it to the args list so we can keep |
| | 159 | # dealing with options |
| | 160 | del rargs[0] |
| | 161 | raise error |
| | 162 | except: |
| | 163 | largs.append(arg) |
| 138 | 164 | |
| 139 | 165 | class ManagementUtility(object): |
| 140 | 166 | """ |