X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Futils%2Fstartopt.py;h=e39330431711290d09e4e0095a85146aca8d53b8;hb=28e9bf9d6b8446fee94cdaaed5e28446dfad64b8;hp=51319f60afc7360b3a5d64d8993ec6e29c1cdeee;hpb=1481a05d7060c8cfd615850b3df9d66a52fb0ff4;p=mpd-sima.git diff --git a/sima/utils/startopt.py b/sima/utils/startopt.py index 51319f6..e393304 100644 --- a/sima/utils/startopt.py +++ b/sima/utils/startopt.py @@ -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)'}, @@ -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. """