FS#56995 - [namcap] Update long options in usage()

Attached to Project: Arch Linux
Opened by Rafael Fontenelle (josephg) - Sunday, 07 January 2018, 22:41 GMT
Last edited by Jelle van der Waa (jelly) - Friday, 11 August 2023, 15:51 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Some of the long options recognized by Namcap are not listed as valid in the usage function. The missing long options are: --info, --machine-readable, --tags and --version. Currently valid options in the Git source code repository are coded in the line 174 of namcap.py[1], and the usage function is coded in the line 41, also in namcap.py[2].

[1] https://git.archlinux.org/namcap.git/tree/namcap.py?id=f73bf160de19e43d1c22a3db0f32b234b872963f#n174
[2] https://git.archlinux.org/namcap.git/tree/namcap.py?id=f73bf160de19e43d1c22a3db0f32b234b872963f#n41

Additional info:
* package version(s)
namcap 3.2.7-1
* config and/or log files etc.


Steps to reproduce:
- run `namcap' to get the following (incomplete) output:

$ namcap

Usage: /usr/lib/python3.6/site-packages/namcap.py [OPTIONS] packages

Options are:
-L, --list : list available rules
-i : prints information (debug) responses from rules
-m : makes the output parseable (machine-readable)
-e rulelist, --exclude=rulelist : don't apply RULELIST rules to the package
-r rulelist, --rules=rulelist : only apply RULELIST rules to the package
-t tags : use a custom tag file
-v version : print version and exit
This task depends upon

Closed by  Jelle van der Waa (jelly)
Friday, 11 August 2023, 15:51 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/pacman/namc ap/issues/48
Comment by Eli Schwartz (eschwartz) - Sunday, 07 January 2018, 22:57 GMT
  • Field changed: Summary ([namcap] Update long options in usage() → {namcap} Update long options in usage())
  • Field changed: Category (Packages: Extra → Arch Projects)
Consider also posting patches to the mailing list where namcap development happens: https://lists.archlinux.org/listinfo/arch-projects
Comment by Rafael Fontenelle (josephg) - Monday, 08 January 2018, 21:24 GMT
Well, tried without success, as I'll getting "504 Gateway time-out" when finishing the subscription.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...