]> kaliko git repositories - mpd-sima.git/blobdiff - sima/utils/startopt.py
Add option to generate config on stdout
[mpd-sima.git] / sima / utils / startopt.py
index 51319f60afc7360b3a5d64d8993ec6e29c1cdeee..2081c19266951f3b215d6353cd0229467c75c47a 100644 (file)
@@ -81,6 +81,13 @@ OPTS = [
         'dest': 'conf_file',
         'action': Rfile,
         'help': 'Configuration file to load'},
+    {
+        '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'],
         'dest': 'var_dir',