Panel serve argparse

I am using argparse to pass command line arguments to my script that then starts a dashboard via pn.serve()
I can either parse_known_args or use a parent argument parser but would have to rebuild the arg parser dict. Is this a good way to include the command line options of panel serve along with my custom comand?