Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.
This repository was archived by the owner on May 16, 2023. It is now read-only.

Flags in Argument Parser not working #189

@onlyphantom

Description

@onlyphantom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions