Zack McCauley - WardsParadox

Hi, I’m a macadmin for a school district in Montana. Never stop learning.

TIL 02 - Multiple Inputs For One Argument

2016-06-05

I use a tool called Outset Dock Profiler made by Nick McSpadden. It's great and for user accounts where I only need to target one profile, it works great! {% icon fa-thumbs-o-up fg-lg >}}

There has always been one thing about it that bothered me. If I had multiple profiles for a user, I couldn't use this tool. Sure I could use it to build an initial package and modify the script. I've done it before but it can be easy for me (my brain is the size of a pea after all) to forget. I decided to learn about argparse and add the ability to use multiple profiles. Now not only does it support multiple profiles but it will also organize the profiles into the appropriate folders by username. This means that regardless of the number of profiles you need, as separating out the payload makes management of them easier, it will "install" them all as long as you have targeted the right user. Check it out on my github. I am thinking about pull-requesting it back to Nick, but I'm sure there are other issues that I created. Let me know what you think.

My fork of OutsetDockProfiler