most-active-github-users-counter icon indicating copy to clipboard operation
most-active-github-users-counter copied to clipboard

Flags in Argument Parser not working

Open onlyphantom opened this issue 1 year ago • 0 comments

Currently, when trying to run the following code:

go run *.go \
   --token paste-your-token-here \
   --preset worldwide \
   --amount 10 \
   --consider 10 \
   --output csv \
   --file ./output.csv

The expected behavior is that the value 10 is used in both the amount and consider option. However, doing a simple print to the console would show that they are not being used, and that the default value is still the one being used.

This is probably also true for the token argument (not being used). Adding some fmt.Println() after that line and then calling the function with arguments would be a way to test and reproduce this.

Happy to work on a PR if this is in fact a confirmed bug, and a welcomed change by the maintainers? If I'm missing something please enlighten me.

onlyphantom avatar Apr 01 '23 09:04 onlyphantom