Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 154493
Collapse All | Expand All

(-)java-config-2 (-1 / +12 lines)
Lines 318-324 Link Here
318
        parser.print_help()
318
        parser.print_help()
319
    else:        
319
    else:        
320
        try:
320
        try:
321
            (options, args) = parser.parse_args()
321
            # Makes sure that --nocolor is always the first argument 
322
            # because otherwise callbacks before it will output
323
            # colored output
324
            args = sys.argv[1:]
325
            for opt in ( '-n', '--nocolor'):
326
                try:
327
                    args.remove(opt)
328
                    args.insert(0,opt)
329
                except ValueError:
330
                    pass
331
332
            (options, args) = parser.parse_args(args=args)
322
        except InvalidVMError:
333
        except InvalidVMError:
323
            fatalError("The active vm could not be found")
334
            fatalError("The active vm could not be found")
324
335

Return to bug 154493