triggercode / mamp-cli

Command line interface to work with the popular MAMP server environment
MIT License
14 stars 1 forks source link

Log error if `mamp add` is invoked without a `<shortcut>` argument. #7

Closed jrmykolyn closed 7 years ago

jrmykolyn commented 7 years ago

Description

If the mamp add command is invoked without a <shortcut> argument, an error message/additional usage instructions will be displayed.

Motivation and Context

Currently, invoking mamp add adds the following key/value pair to the .mamp-cli file:

"undefined": "/path/to/file"

This update prevents undefined shortcuts from being added to the .mamp-cli file by ensuring that the <shortcut> argument is always present.

How Has This Been Tested?

This update has been tested on my local, forked version of the mamp-cli package.

Screenshots (if appropriate):

Types of changes

Checklist:

P.S. First of all, thanks for putting together such a great tool. mamp-cli definitely beats having to make manual updates to the MAMP.app config files.