From c265b288583e0e5391d311dfffbd5034e4de4dec Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Tue, 29 May 2012 13:11:27 +0300 Subject: [PATCH] Removed useless getconfig mode. Change-Id: I50d3f7d522f9bdc16d18d486145f288253955f4d --- tools/gbs | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/tools/gbs b/tools/gbs index 8bc0ede..5c99126 100755 --- a/tools/gbs +++ b/tools/gbs @@ -278,34 +278,6 @@ class Gbs(cmdln.Cmdln): from gitbuildsys import cmd_changelog as cmd cmd.do(opts, args) - @cmdln.alias('cfg') - @cmdln.option('-s', '--section', - metavar='SECTION', - default='general', - help='specify the section inside config file, ' \ - 'use "general" as the default') - def do_getconfig(self, _subcmd, opts, *args): - """${cmd_name}: query values of config file - - Usage: - gbs getconfig [ ...] - - ${cmd_option_list} - """ - - if not args: - raise errors.Usage('argument(s) expected') - - for arg in args: - val = configmgr.get(arg, section=opts.section) - if val: - msger.verbose('The value of opt "%s" in [%s] is:' \ - % (arg, opts.section)) - msger.raw(val) - else: - msger.verbose('No value for opt key "%s" in [%s]' \ - % (arg, opts.section)) - msger.raw('') # we need a blank line if __name__ == '__main__': try: -- 2.7.4