Lines Matching refs:args
544 args = parser.parse_args()
545 config = ConfigFile(args.file)
546 if args.command is None:
549 elif args.command == 'get':
550 if args.symbol in config:
551 value = config[args.symbol]
554 return 0 if args.symbol in config else 1
555 elif args.command == 'set':
556 if not args.force and args.symbol not in config.settings:
559 .format(args.symbol, config.filename))
561 config.set(args.symbol, value=args.value)
562 elif args.command == 'set-all':
563 config.change_matching(args.regexs, True)
564 elif args.command == 'unset':
565 config.unset(args.symbol)
566 elif args.command == 'unset-all':
567 config.change_matching(args.regexs, False)
569 config.adapt(args.adapter)
570 config.write(args.write)