Skip to content

Wrong output in manual-parse in chapter 1 #5

@tmcancode

Description

@tmcancode

Because you check validateArgs() before call runCmd() so when I run command ./application -h actually to view help it always print "Must specify a number greater than 0" in the first line of output (after than is help - actually because err != nil). I think we should add condition "!c.printUsage" in validateArgs() function to sure that user want to view help not because of wrong input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions