From f1cde96ac67205db17fe6e0fe53a339abe085bcc Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Thu, 9 Jan 2020 09:24:13 +0100 Subject: [PATCH] PICARD-1054: Allow Qt to handle default Qt and X command line arguments --- picard/tagger.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/picard/tagger.py b/picard/tagger.py index 275ec85bd..9354430d5 100644 --- a/picard/tagger.py +++ b/picard/tagger.py @@ -888,6 +888,14 @@ def process_picard_args(): parser = argparse.ArgumentParser( epilog="If one of the filenames begins with a hyphen, use -- to separate the options from the filenames." ) + # Qt default arguments. Parse them so Picard does not interpret the + # arguments as file names to load. + parser.add_argument("-style", nargs=1, help=argparse.SUPPRESS) + parser.add_argument("-stylesheet", nargs=1, help=argparse.SUPPRESS) + # Same for default X arguments + parser.add_argument("-display", nargs=1, help=argparse.SUPPRESS) + + # Picard specific arguments parser.add_argument("-c", "--config-file", action='store', default=None, help="location of the configuration file")