Skip to content
This repository was archived by the owner on Jan 25, 2019. It is now read-only.
This repository was archived by the owner on Jan 25, 2019. It is now read-only.

no arguments == crash #2

@lelutin

Description

@lelutin

argument parsing is not very flexible.. giving no argument to the script makes it crash with:

Traceback (most recent call last):
  File "./format-pull-request.py", line 75, in <module>
    owner, repo = sys.argv[1:3]
ValueError: need more than 0 values to unpack

this should be changed to using some args parsing module, or the builtin getopt function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions