Why should I type the full QUIT word to quit a cli application?

Views: 7373 | Add Comments

Many command-line application ask the user to type in every character of the word “quit” and press Enter to quit the application. But I want to ask the reason why? Why can’t I just type in only the character ‘q’ and press Enter, or press ESC key to quit?

Actually, many cli application like redis-cli said it received a bad command when user type in ‘q’ and press Enter. So, the ‘q’ command doesn’t map to any other operation. So it is available to map ‘q’ to the quit operation.

As for the convienience of users, ssdb-cli allow user to type in ‘q’ to quit the application.

Posted by ideawu at 2013-08-15 14:00:09

Leave a Comment