ube
ube copied to clipboard
Add flag arguments
Problem
As of right now, there are no flag arguments. Here is what Ube will currently output when running the command ube:
2024/04/22 19:17:11 FATA Usage: ube <folder>
Task
When running the command ube, the output should look like this:
USAGE:
ube [FLAGS] [ARGS]
FLAGS:
-h, --help Prints help information
-v, --version Prints version information
ARGS:
<input> The path to the file or directory to be counted.
Running ube -h or ube --help should also produce the same output as above.
Running ube -v or ube --version should output:
ube version X
Where X is the version of the Ube executable a user has e.g. 2.0.0, 1.0.1, etc.
Pointers
- Look at the Contributing Guide.
- Look into the Go standard flag package. You can use other alternatives if they are better.