Revert "do nothing by default and prevent traceback"

This reverts commit b7a8a84bfc.
This commit is contained in:
Nico Schottelius 2012-10-24 11:16:36 +02:00
parent 8a8192d3d3
commit 5315c41903

View file

@ -39,15 +39,12 @@ def commandline():
help='Set log level to info, be more verbose', help='Set log level to info, be more verbose',
action='store_true', default=False) action='store_true', default=False)
# Main parser # Main subcommand parser
parser['main'] = argparse.ArgumentParser(description='cdist ' + cdist.VERSION, parser['main'] = argparse.ArgumentParser(description='cdist ' + cdist.VERSION,
parents=[parser['loglevel']]) parents=[parser['loglevel']])
parser['main'].add_argument('-V', '--version', parser['main'].add_argument('-V', '--version',
help='Show version', action='version', help='Show version', action='version',
version='%(prog)s ' + cdist.VERSION) version='%(prog)s ' + cdist.VERSION)
#parser['main'].set_defaults(func=commandline_main)
# Subcommand shell
parser['sub'] = parser['main'].add_subparsers(title="Commands") parser['sub'] = parser['main'].add_subparsers(title="Commands")
# Banner # Banner
@ -106,9 +103,6 @@ def commandline():
log.debug(args) log.debug(args)
args.func(args) args.func(args)
def commandline_main(args):
pass
def config(args): def config(args):
configinstall(args, mode=cdist.config.Config) configinstall(args, mode=cdist.config.Config)