Skip to content

Commit 1050a68

Browse files
committed
Sharing: Remove the CLI share option
Due to COPPA restrictions, sharing is not supported in Make Snake so remove the option from the CLI parser. It has been removed in a non-destructive way so should we choose to re-enable it then it simply requires adding the button back.
1 parent 00d8406 commit 1050a68

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
make-snake (4.3.0-0) unstable; urgency=low
2+
3+
* Remove option to share from the python snake command
4+
5+
-- Team Kano <[email protected]> Tue, 2 Jul 2019 15:17:00 +0100
6+
17
make-snake (3.14.0-0) unstable; urgency=low
28

39
* Applied changes from v3.9.2 es_AR backports to latest

snake/parser.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env python
2-
2+
#
33
# parser.py
44
#
5-
# Copyright (C) 2013, 2014 Kano Computing Ltd.
6-
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
5+
# Copyright (C) 2013-2019 Kano Computing Ltd.
6+
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
77
#
88
# Contributors: https://github.com/alexaverill
99
#
@@ -85,15 +85,17 @@ def init():
8585
action="store_true", dest="reset", default=False,
8686
help=_("Resets the game to challenge 1"))
8787

88-
parser.add_argument("--share",
89-
action="store_true", dest="share", default=False,
90-
help=_("Share your favourite theme with the world"))
88+
# Disable sharing:
89+
# parser.add_argument("--share",
90+
# action="store_true", dest="share", default=False,
91+
# help=_("Share your favourite theme with the world"))
9192

9293
args = parser.parse_args()
9394

95+
# Disable sharing:
9496
# Check for share argument
95-
if (args.share):
96-
utils.share_theme()
97+
# if (args.share):
98+
# utils.share_theme()
9799

98100
# Check for valid theme
99101
if (args.theme and args.theme != 'minimal'):

0 commit comments

Comments
 (0)