From a0acbee3e5f106a88cb4f148d42c0fdae7874ddf Mon Sep 17 00:00:00 2001 From: Uriziel Date: Sat, 29 Dec 2012 15:48:03 +0100 Subject: [PATCH] Some explanation on adding config vars --- syncplay/ui/ConfigurationGetter.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/syncplay/ui/ConfigurationGetter.py b/syncplay/ui/ConfigurationGetter.py index cbb4794..b40447c 100644 --- a/syncplay/ui/ConfigurationGetter.py +++ b/syncplay/ui/ConfigurationGetter.py @@ -29,6 +29,10 @@ class ConfigurationGetter(object): "playerArgs": [], "playerType": None, } + + # + #Custom validation in self._validateArguments + # self._required = [ "host", "port", @@ -42,6 +46,9 @@ class ConfigurationGetter(object): "client_settings": ["name", "room", "playerPath"] } + # + #Watch out for the method self._overrideConfigWithArgs when you're adding custom multi-word command line arguments + # self._argparser = argparse.ArgumentParser(description='Solution to synchronize playback of multiple MPlayer and MPC-HC instances over the network.', epilog='If no options supplied values from configuration file will be used') self._argparser.add_argument('--no-gui', action='store_true', help='show no GUI')