# -*- coding: utf-8 -*-
-# Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Jack Kaliko <kaliko@azylum.org>
+# Copyright (c) 2009-2015 kaliko <kaliko@azylum.org>
#
# This file is part of sima
#
'action': Rfile,
'help': 'Configuration file to load'},
{
- 'sw':['--var_dir'],
+ 'sw':['--generate-config'],
+ 'dest': 'generate_config',
+ 'action': 'store_true',
+ 'help': 'Generate a sample configuration file to stdout according to the current\
+ configuration. You can put other options with this one to get them in\
+ the generated configuration.'},
+ {
+ 'sw':['--var-dir', '--var_dir'],
'dest': 'var_dir',
'action': Wdir,
'help': 'Directory to store var content (ie. database, cache)'},
'action': 'store_true',
'dest': 'create_db',
'help': '''Create database and exit, use destination
- specified in --var_dir or standard location.'''},
+ specified in --var-dir or standard location.'''},
{
'sw':['--queue-mode', '-q'],
'dest': 'queue_mode',
#'help': 'Queue mode in [track, top, album]',
'help': SUPPRESS, },
{
- 'sw':['--purge_history'],
+ 'sw':['--purge-history'],
'action': 'store_true',
'dest': 'do_purge_history',
'help': SUPPRESS},
]
-class StartOpt(object):
+class StartOpt:
"""Command line management.
"""