Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PCigales authored Apr 15, 2022
1 parent 6a4371a commit ce85deb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion PlayOn.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# DLNAPlayOn v1.7.0 (https://github.com/PCigales/DLNAPlayOn)
# Copyright © 2022 PCigales
# This program is licensed under the GNU GPLv3 copyleft license (see https://www.gnu.org/licenses)

from functools import partial
import threading
import selectors
Expand Down Expand Up @@ -188,6 +192,7 @@
'jmstop': 'Arrêter la lecture ?'
},
'parser': {
'license': 'Ce programme est sous licence copyleft GNU GPLv3 (voir https://www.gnu.org/licenses)',
'help': 'affichage du message d\'aide et interruption du script',
'ip': 'adresse IP du serveur [adresse sur le réseau par défaut]',
'port': 'port TCP du serveur [8000 par défaut]',
Expand Down Expand Up @@ -389,6 +394,7 @@
'jmstop': 'Stop the playback ?'
},
'parser': {
'license': 'This program is licensed under the GNU GPLv3 copyleft license (see https://www.gnu.org/licenses)',
'help': 'display of the help message and interruption of the script',
'ip': 'IP address of the server [address on the network by default]',
'port': 'TCP port of the server [8000 by default]',
Expand Down Expand Up @@ -6389,7 +6395,11 @@ def shutdown(self):


if __name__ == '__main__':


print('DLNAPlayOn v1.7.0 (https://github.com/PCigales/DLNAPlayOn) Copyright © 2022 PCigales')
print(LSTRINGS['parser']['license'])
print('');

formatter = lambda prog: argparse.HelpFormatter(prog, max_help_position=65, width=119)
CustomArgumentParser = partial(argparse.ArgumentParser, formatter_class=formatter, add_help=False)
parser = CustomArgumentParser()
Expand Down

0 comments on commit ce85deb

Please sign in to comment.