Added force prompt option
This commit is contained in:
parent
34d7b112b1
commit
ba2012038f
@ -24,12 +24,13 @@ class ConfigurationGetter(object):
|
|||||||
self._parser = argparse.ArgumentParser(description='Solution to synchronize playback of multiple MPlayer and MPC-HC instances over the network.',
|
self._parser = argparse.ArgumentParser(description='Solution to synchronize playback of multiple MPlayer and MPC-HC instances over the network.',
|
||||||
epilog='If no options supplied _config values will be used')
|
epilog='If no options supplied _config values will be used')
|
||||||
self._parser.add_argument('--no-gui', action='store_true', help='show no GUI')
|
self._parser.add_argument('--no-gui', action='store_true', help='show no GUI')
|
||||||
self._parser.add_argument('--host', metavar='hostname', type=str, help='server\'s address')
|
self._parser.add_argument('-a', '--host', metavar='hostname', type=str, help='server\'s address')
|
||||||
self._parser.add_argument('--name', metavar='username', type=str, help='desired username')
|
self._parser.add_argument('-n', '--name', metavar='username', type=str, help='desired username')
|
||||||
self._parser.add_argument('-d','--debug', action='store_true', help='debug mode')
|
self._parser.add_argument('-d','--debug', action='store_true', help='debug mode')
|
||||||
|
self._parser.add_argument('-g','--force-gui-prompt', action='store_true', help='make configuration prompt appear')
|
||||||
self._parser.add_argument('--no-store', action='store_true', help='don\'t store values in syncplay.ini')
|
self._parser.add_argument('--no-store', action='store_true', help='don\'t store values in syncplay.ini')
|
||||||
self._parser.add_argument('--room', metavar='room', type=str, nargs='?', help='default room')
|
self._parser.add_argument('-r', '--room', metavar='room', type=str, nargs='?', help='default room')
|
||||||
self._parser.add_argument('--password', metavar='password', type=str, nargs='?', help='server password')
|
self._parser.add_argument('-p', '--password', metavar='password', type=str, nargs='?', help='server password')
|
||||||
self._parser.add_argument('file', metavar='file', type=str, nargs='?', help='file to play')
|
self._parser.add_argument('file', metavar='file', type=str, nargs='?', help='file to play')
|
||||||
self._parser.add_argument('_args', metavar='options', type=str, nargs='*', help='player options, if you need to pass options starting with - prepend them with single \'--\' argument')
|
self._parser.add_argument('_args', metavar='options', type=str, nargs='*', help='player options, if you need to pass options starting with - prepend them with single \'--\' argument')
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,7 @@ class SyncplayMPC(SyncplayClient):
|
|||||||
self.args = self.argsGetter.getConfiguration()
|
self.args = self.argsGetter.getConfiguration()
|
||||||
|
|
||||||
def _guiPromptForMissingArguments(self):
|
def _guiPromptForMissingArguments(self):
|
||||||
self.args = GuiConfigurationForMPC(self.args).getProcessedConfiguration()
|
self.args = GuiConfigurationForMPC(self.args, self.args.force_gui_prompt).getProcessedConfiguration()
|
||||||
|
|
||||||
def _promptForMissingArguments(self):
|
def _promptForMissingArguments(self):
|
||||||
SyncplayClient._promptForMissingArguments(self)
|
SyncplayClient._promptForMissingArguments(self)
|
||||||
|
|||||||
@ -547,7 +547,7 @@ class SyncplayClient(object):
|
|||||||
self.args = self.argsGetter.getConfiguration()
|
self.args = self.argsGetter.getConfiguration()
|
||||||
|
|
||||||
def _guiPromptForMissingArguments(self):
|
def _guiPromptForMissingArguments(self):
|
||||||
self.args = GuiConfiguration(self.args).getProcessedConfiguration()
|
self.args = GuiConfiguration(self.args, self.args.force_gui_prompt).getProcessedConfiguration()
|
||||||
|
|
||||||
def _promptForMissingArguments(self):
|
def _promptForMissingArguments(self):
|
||||||
if(self.args.no_gui):
|
if(self.args.no_gui):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user