diff options
| author | Bryan Newbold <bnewbold@archive.org> | 2020-11-02 21:50:53 -0800 | 
|---|---|---|
| committer | Bryan Newbold <bnewbold@archive.org> | 2020-11-02 21:54:53 -0800 | 
| commit | 858a4cc900fd0da9549b0cf227041b0d6bb91f6f (patch) | |
| tree | 6b2ec259bfc97388e8dc35074eec566142e18238 | |
| parent | 732cee4f4226cc275938043383c7502bd1144cbb (diff) | |
| download | fatcat-scholar-858a4cc900fd0da9549b0cf227041b0d6bb91f6f.tar.gz fatcat-scholar-858a4cc900fd0da9549b0cf227041b0d6bb91f6f.zip | |
commands: show usage on empty command
| -rw-r--r-- | fatcat_scholar/issue_db.py | 2 | ||||
| -rw-r--r-- | fatcat_scholar/sim_pipeline.py | 2 | ||||
| -rw-r--r-- | fatcat_scholar/transform.py | 2 | ||||
| -rw-r--r-- | fatcat_scholar/work_pipeline.py | 2 | 
4 files changed, 4 insertions, 4 deletions
| diff --git a/fatcat_scholar/issue_db.py b/fatcat_scholar/issue_db.py index 9839a60..bf79b09 100644 --- a/fatcat_scholar/issue_db.py +++ b/fatcat_scholar/issue_db.py @@ -419,7 +419,7 @@ def main() -> None:      args = parser.parse_args()      if not args.__dict__.get("func"): -        print("tell me what to do! (try --help)") +        parser.print_help(file=sys.stderr)          sys.exit(-1)      idb = IssueDB(args.db_file) diff --git a/fatcat_scholar/sim_pipeline.py b/fatcat_scholar/sim_pipeline.py index 47a3e22..926d943 100644 --- a/fatcat_scholar/sim_pipeline.py +++ b/fatcat_scholar/sim_pipeline.py @@ -191,7 +191,7 @@ def main() -> None:      args = parser.parse_args()      if not args.__dict__.get("func"): -        print("tell me what to do! (try --help)") +        parser.print_help(file=sys.stderr)          sys.exit(-1)      sp = SimPipeline(issue_db=IssueDB(args.issue_db_file)) diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py index 8ba8b2a..10382af 100644 --- a/fatcat_scholar/transform.py +++ b/fatcat_scholar/transform.py @@ -697,7 +697,7 @@ def main() -> None:      args = parser.parse_args()      if not args.__dict__.get("func"): -        print("tell me what to do! (try --help)") +        parser.print_help(file=sys.stderr)          sys.exit(-1)      if args.func == "run_transform": diff --git a/fatcat_scholar/work_pipeline.py b/fatcat_scholar/work_pipeline.py index d4bd2fb..631bda8 100644 --- a/fatcat_scholar/work_pipeline.py +++ b/fatcat_scholar/work_pipeline.py @@ -417,7 +417,7 @@ def main() -> None:      args = parser.parse_args()      if not args.__dict__.get("func"): -        print("tell me what to do! (try --help)") +        parser.print_help(file=sys.stderr)          sys.exit(-1)      wp = WorkPipeline( | 
