Octobug opened a new issue, #1330:
URL: https://github.com/apache/answer/issues/1330

   ## Is your enhancement request related to a problem? Please describe
   
   Yes, though it's not a big one. Current command usage statements seem a bit 
irregular.
   
   ## Describe the solution you'd like
   
   Well, I've modified a version with a PR(draft) as below.
   
   - There seems no open standard for command-line usage statements.
   - We can see some "styles" from examples from the [cobra 
docs](https://cobra.dev/#usage-message).
     - Command's descriptions are capitalized
     - But flags' are not
   
   ```sh
   Answer is a minimalist open source Q&A community.
   To run answer, use:
           - 'answer init' to initialize the required environment.
           - 'answer run' to launch application.
   
   Usage:
     answer [command]
   
   Available Commands:
     build       Build Answer with plugins
     check       Check the required environment
     completion  Generate the autocompletion script for the specified shell
     config      Set some config to default value
     dump        Back up data
     help        Help about any command
     i18n        Overwrite i18n files
     init        Initialize Answer
     plugin      Print all plugins packed in the binary
     run         Run Answer
     upgrade     Upgrade Answer
   
   Flags:
     -C, --data-path string   data path, eg: -C ./data/ (default "/data/")
     -h, --help               help for answer
     -v, --version            version for answer
   
   Use "answer [command] --help" for more information about a command.
   
   ```
   ## Describe alternatives you've considered
   
   A discussion might be needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@answer.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to