X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Futils%2Fstartopt.py;h=80ccb9742e737a9e9a12bcab167b03e71e4a28ca;hb=69c5f0029e140e4471f38e8cae5d07b649263a08;hp=cdcfcecc3cdce09314b2a7adcfc98e31a45cbf5c;hpb=faf4a4dcf4d8772fd64209c507d5959478e053f5;p=mpd-sima.git diff --git a/sima/utils/startopt.py b/sima/utils/startopt.py index cdcfcec..80ccb97 100644 --- a/sima/utils/startopt.py +++ b/sima/utils/startopt.py @@ -44,6 +44,7 @@ def clean_dict(to_clean): CMDS = {'config-test': 'Test configuration (MPD connection and Tags plugin only)', 'create-db': 'Create the database', 'generate-config': 'Generate a configuration file to stdout', + 'purge-history': 'Remove play history' } # OPTIONS LIST # pop out 'sw' value before creating Parser object. @@ -93,21 +94,11 @@ OPTS = [ 'action': Rfile, 'metavar': 'CONFIG', 'help': 'configuration file to load'}, - { # TODO: To remove eventually in next major realese v0.18 - 'sw': ['--generate-config'], - 'dest': 'generate_config', - 'action': 'store_true', - 'help': SUPPRESS}, { 'sw': ['--var-dir', '--var_dir'], 'dest': 'var_dir', 'action': Wdir, 'help': 'directory to store var content (ie. database, cache)'}, - { # TODO: To remove eventually in next major realese v0.18 - 'sw': ['--create-db'], - 'action': 'store_true', - 'dest': 'create_db', - 'help': SUPPRESS}, { 'sw': ['command'], 'nargs': '?',