diff --git a/setup.py b/setup.py index 07587a6..2998e26 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name='gitcomp', - version='1.0.1', + version='1.0.4', author='Anirudh Vaish', author_email='anirudhvaish147@gmail.com', url='https://github.com/avaish1409/gitcomp', diff --git a/src/gitcomp/__main__.py b/src/gitcomp/__main__.py index 552e7c1..5ebccfa 100644 --- a/src/gitcomp/__main__.py +++ b/src/gitcomp/__main__.py @@ -68,7 +68,7 @@ def safe_exit(parser: argparse.ArgumentParser): def main(): arg_parser = __get_arg_parser() args = arg_parser.parse_args() - if args.user_names is None and args.repo_names is None: + if len(args.user_names) == len(args.repo_names) == 0: safe_exit(arg_parser) users = list(set(args.user_names)) or None repos = list((set(args.repo_names))) or None