##// END OF EJS Templates
exit cleanly on help/version
MinRK -
Show More
@@ -226,11 +226,11 b' class Application(SingletonConfigurable):'
226 if '-h' in argv or '--help' in argv:
226 if '-h' in argv or '--help' in argv:
227 self.print_description()
227 self.print_description()
228 self.print_help()
228 self.print_help()
229 self.exit(1)
229 self.exit(0)
230
230
231 if '--version' in argv:
231 if '--version' in argv:
232 self.print_version()
232 self.print_version()
233 self.exit(1)
233 self.exit(0)
234
234
235 loader = KeyValueConfigLoader(argv=argv, aliases=self.aliases,
235 loader = KeyValueConfigLoader(argv=argv, aliases=self.aliases,
236 flags=self.flags)
236 flags=self.flags)
General Comments 0
You need to be logged in to leave comments. Login now