minor
minor
maldevel
8 years ago
171 | 171 | if x > 0: |
172 | 172 | return x |
173 | 173 | raise argparse.ArgumentTypeError("Minimum results limit is 1.") |
174 | ||
175 | #=============================================================================== | |
176 | # def engine_type(engine): | |
177 | # engines = 'all ask bing google yahoo'.split() | |
178 | # if engine in engines: | |
179 | # return engine | |
180 | # raise argparse.ArgumentTypeError("Invalid search engine, try with: {}.".format(', '.join(engines))) | |
181 | #=============================================================================== | |
182 | 174 | |
183 | 175 | ################################################################### |
184 | 176 |