Lines Matching refs:args
570 args = parser.parse_args()
571 config = ConfigFile(args.file)
572 if args.command is None:
575 elif args.command == 'get':
576 if args.symbol in config:
577 value = config[args.symbol]
580 return 0 if args.symbol in config else 1
581 elif args.command == 'set':
582 if not args.force and args.symbol not in config.settings:
585 .format(args.symbol, config.filename))
587 config.set(args.symbol, value=args.value)
588 elif args.command == 'set-all':
589 config.change_matching(args.regexs, True)
590 elif args.command == 'unset':
591 config.unset(args.symbol)
592 elif args.command == 'unset-all':
593 config.change_matching(args.regexs, False)
595 config.adapt(args.adapter)
596 config.write(args.write)