Eclipseで実行できない問題

問題

EclipseでApplicationを実行しようとすると、

usage: java -jar project.jar [-h] [-v] {server,check} ...

positional arguments:
  {server,check}         available commands

optional arguments:
  -h, --help             show this help message and exit
  -v, --version          show the application version and exit

とコンソールに出てきて実行できなかった。




解決方法

  1. Run > DebugConfigurationsに移動。

  2. ArgumentsのProgram argumentsにymlファイルのディレクトリを書き込む。  今回は、server /Users/nanako/Development/salt-inc/zero-one/zo-api/zo-tools/zo-tools.yml

  3. ApplyをおしてDebugすると実行された。