X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Futils%2Fstartopt.py;h=16ad773373be80b9447d0c3545855e1ca667d365;hb=5595804ad7bc2eeb15db93efc129bf21d9a3cc77;hp=2081c19266951f3b215d6353cd0229467c75c47a;hpb=fe1ed51724531b8c1e78e7d7eb590c9be20e275c;p=mpd-sima.git diff --git a/sima/utils/startopt.py b/sima/utils/startopt.py index 2081c19..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 # @@ -89,7 +89,7 @@ OPTS = [ configuration. You can put other options with this one to get them in\ the generated configuration.'}, { - 'sw':['--var_dir'], + 'sw':['--var-dir', '--var_dir'], 'dest': 'var_dir', 'action': Wdir, 'help': 'Directory to store var content (ie. database, cache)'}, @@ -98,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', @@ -106,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. """