mirror of
https://github.com/Mic92/nix-update.git
synced 2024-09-17 13:27:27 +03:00
dont pass args[0] to python's argparse
This commit is contained in:
parent
e826940d01
commit
72e40caf8e
@ -17,7 +17,7 @@ def die(msg: str) -> NoReturn:
|
||||
|
||||
|
||||
def parse_args(args: list[str]) -> Options:
|
||||
parser = argparse.ArgumentParser(prog=args[0])
|
||||
parser = argparse.ArgumentParser()
|
||||
help = "File to import rather than default.nix. Examples, ./release.nix"
|
||||
parser.add_argument("-f", "--file", default="./.", help=help)
|
||||
parser.add_argument("--build", action="store_true", help="build the package")
|
||||
|
Loading…
Reference in New Issue
Block a user