HPInc / HP-Digital-Microfluidics

HP Digital Microfluidics Software Platform and Libraries
MIT License
2 stars 0 forks source link

Allow overriding of mutually exclusive arguments #258

Closed EvanKirshenbaum closed 5 months ago

EvanKirshenbaum commented 5 months ago

There are a number of places where I have mutually exclusive command-line arguments. For example:

        lidg = group.add_mutually_exclusive_group()
        lidg.add_argument('--glass', action='store_const', const=LidType.GLASS, dest='lid_type',
                          help="Glass lid")
        lidg.add_argument('--plastic', action='store_const', const=LidType.PLASTIC, dest='lid_type',
                          help="Plastic lid")

With the addition of the ability to get arguments from a file (#252), it seems as though it would be more useful to allow the user to put default values in a file and let them be overridden by arguments explicitly on the command line (or in a later included file).

Migrated from internal repository. Originally created by @EvanKirshenbaum on Feb 28, 2023 at 10:42 AM PST. Closed on Feb 28, 2023 at 11:00 AM PST.
EvanKirshenbaum commented 5 months ago

This issue was referenced by the following commit before migration:

EvanKirshenbaum commented 5 months ago

Removed mutually-exclusive groups from wombat.py and exerciser.py so that arguments can be overridden. This affects

While I was there, I also added --v1, --v2, --4.0, and --4.1 as synonyms for -v1, -v2, -4.0, and -4.1.

Migrated from internal repository. Originally created by @EvanKirshenbaum on Feb 28, 2023 at 11:00 AM PST.