From 02b9348a0f29bf3c8d59be5f068b0cc0f722bcbf Mon Sep 17 00:00:00 2001 From: RedBearAK <64876997+RedBearAK@users.noreply.github.com> Date: Sun, 11 Aug 2024 13:29:38 -0800 Subject: [PATCH] Allow fancy option with 'apply-tweaks' command --- setup_toshy.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/setup_toshy.py b/setup_toshy.py index 7fe5463b..616a2a0c 100755 --- a/setup_toshy.py +++ b/setup_toshy.py @@ -3224,6 +3224,7 @@ def handle_cli_arguments(): subparsers = parser.add_subparsers(dest='command', help='Available commands') + subparser_install = subparsers.add_parser( 'install', help='Install Toshy (see options to modify install actions)' @@ -3255,6 +3256,7 @@ def handle_cli_arguments(): help='See README for more info on this option.' ) + subparser_list_distros = subparsers.add_parser( 'list-distros', help='Display list of distros to use with "--override-distro"' @@ -3265,11 +3267,19 @@ def handle_cli_arguments(): help='Show the environment the installer detects, and exit' ) + subparser_apply_tweaks = subparsers.add_parser( 'apply-tweaks', help='Apply desktop environment tweaks only, no install' ) + subparser_apply_tweaks.add_argument( + '--fancy-pants', + action='store_true', + help='See README for more info on this option.' + ) + + subparser_remove_tweaks = subparsers.add_parser( 'remove-tweaks', help='Remove desktop environment tweaks only, no install' @@ -3285,6 +3295,7 @@ def handle_cli_arguments(): help='Uninstall Toshy' ) + args = parser.parse_args() # show help output if no command given @@ -3327,6 +3338,8 @@ def handle_cli_arguments(): safe_shutdown(0) if args.command == 'apply-tweaks': + if args.fancy_pants: + cnfg.fancy_pants = True get_environment_info() apply_desktop_tweaks() if cnfg.should_reboot: