mirror of
https://projects.torsion.org/witten/borgmatic.git
synced 2025-03-14 12:22:55 +00:00
9 lines
327 B
Python
9 lines
327 B
Python
import argparse
|
|
|
|
|
|
def update_arguments(arguments, **updates):
|
|
'''
|
|
Given an argparse.Namespace instance of command-line arguments and one or more keyword argument
|
|
updates to perform, return a copy of the arguments with those updates applied.
|
|
'''
|
|
return argparse.Namespace(**dict(vars(arguments), **updates))
|