12 lines
316 B
Python
12 lines
316 B
Python
import argparse as ap
|
|
|
|
|
|
def add_parser(sp: ap._SubParsersAction[ap.ArgumentParser]):
|
|
push = sp.add_parser("push", help="push pending changes to git remote")
|
|
push.add_argument(
|
|
"--force",
|
|
"-f",
|
|
help="force push (overriding possible remote changes)",
|
|
action="store_true",
|
|
)
|