Skip to content

Commit

Permalink
Use action store_true instead of default arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Rdornier committed Oct 3, 2024
1 parent dd7654c commit ed3c684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/omero/plugins/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _configure(self, parser):
parser.add_argument(
"filename", help="Local filename (or path for Fileset) to be saved to. '-' for stdout")
parser.add_argument(
"insert_fileset_folder", help="Adding 'Fileset_xxxx' folder in the download path", default="False")
"--insert_fileset_folder", action="store_true", help="Adding 'Fileset_xxxx' folder in the download path")
parser.set_defaults(func=self.__call__)
parser.add_login_arguments()

Expand All @@ -72,7 +72,7 @@ def __call__(self, args):
conn = BlitzGateway(client_obj=client)
conn.SERVICE_OPTS.setOmeroGroup(-1)

if args.insert_fileset_folder.lower() == "true":
if args.insert_fileset_folder:
insert_fileset_folder = True
else:
insert_fileset_folder = False
Expand Down

0 comments on commit ed3c684

Please sign in to comment.