[SERVER-73151] Print --help message when pylinters is invoked Created: 20/Jan/23  Updated: 29/Oct/23  Resolved: 13/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Tausif Rahman (Inactive) Assignee: Steve Gross
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Development Platform
Backwards Compatibility: Fully Compatible
Participants:

 Description   

The UX isn't great when this is called:
python3 ./buildscripts/pylinters.py

We should print the help message and mention this doc https://wiki.corp.mongodb.com/display/HGTC/Remote+Development+with+Visual+Studio+Code+for+MongoDB so that you won't need to run it in the future.



 Comments   
Comment by Githook User [ 12/Jul/23 ]

Author:

{'name': 'stevegrossmongodb', 'email': '136485666+stevegrossmongodb@users.noreply.github.com', 'username': 'stevegrossmongodb'}

Message: SERVER-73151 Change pylinters.py to show usage screen when no args are given
Branch: master
https://github.com/mongodb/mongo/commit/b64888d1b1463ece1d522c11083f5271a66694a2

Comment by Tausif Rahman (Inactive) [ 20/Jan/23 ]

From Slack:
ubuntu@ip-10-122-5-236:~/dev/mongo (mbroadst/SERVER-73129/fix-tenant-migration-hook-retryability *)$ python3 ./buildscripts/pylinters.py
Traceback (most recent call last):
File "/home/ubuntu/dev/mongo/./buildscripts/pylinters.py", line 274, in <module>
main()
File "/home/ubuntu/dev/mongo/./buildscripts/pylinters.py", line 270, in main
args.func(args.linters, config_dict, args.file_names)
AttributeError: 'Namespace' object has no attribute 'func'{}

Generated at Thu Feb 08 06:23:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.