/CK_OptionTestProgram

Test Project for arguments in main and handling these

Primary LanguageJava

A Test Program in Java

This program tests some functions that could be useful in the future. Its purpose is to enable cmd-based programs to pass arguments dynamically

Feautures

  • Options -> for arguments that are to be passed to the main
  • Logging -> LOG.info for example for great logging ( not sysout eww )
  • Help -> If parameter -help is passed, all Options will output

How to pass arguments

  1. Click on 3 dots in the right top corner
  2. Click on "Edit" in the tab "configuration"
  3. Click on +
  4. Choose "Application"
  5. Name your Configuration
  6. Choose the Main Class
  7. enter the Program arguments like "-help"
  8. Check "Store as project file" if you want to store your Configuration for multiple users in version control maybe?
  9. Click on Apply

Documentation Images

Output

Output Image

How to pass Arguments to main

Pass Arguments