X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Futils%2Fstartopt.py;h=16ad773373be80b9447d0c3545855e1ca667d365;hb=d39dc09efbcde303e0ea8375d36d08f0e46bc865;hp=51319f60afc7360b3a5d64d8993ec6e29c1cdeee;hpb=1481a05d7060c8cfd615850b3df9d66a52fb0ff4;p=mpd-sima.git diff --git a/sima/utils/startopt.py b/sima/utils/startopt.py index 51319f6..16ad773 100644 --- a/sima/utils/startopt.py +++ b/sima/utils/startopt.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Jack Kaliko +# Copyright (c) 2009-2015 kaliko # # This file is part of sima # @@ -82,7 +82,14 @@ OPTS = [ '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)'}, @@ -91,7 +98,7 @@ OPTS = [ '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', @@ -99,14 +106,14 @@ OPTS = [ #'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. """