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',
action='store_true', default=False)
# Main parser
# Main subcommand parser
parser['main'] = argparse.ArgumentParser(description='cdist ' + cdist.VERSION,
parents=[parser['loglevel']])
parser['main'].add_argument('-V', '--version',
help='Show version', action='version',
version='%(prog)s ' + cdist.VERSION)
#parser['main'].set_defaults(func=commandline_main)
# Subcommand shell
parser['sub'] = parser['main'].add_subparsers(title="Commands")
# Banner
@ -106,9 +103,6 @@ def commandline():
log.debug(args)
args.func(args)
def commandline_main(args):
pass
def config(args):
configinstall(args, mode=cdist.config.Config)