Artentus / ModMyFactory2

Rewrite of ModMyFactory, the Factorio mod manager
GNU General Public License v3.0
56 stars 18 forks source link

Help inconsistent behavior #12

Open Rihoj opened 3 years ago

Rihoj commented 3 years ago

When trying to find out how to run verbose I found that you have two help menus, and thought it might be worth you compiling them into one.

Running ~/Downloads/2.2.0.11-alpha_standalone_linux64/ModMyFactoryGUI --help or ~/Downloads/2.2.0.11-alpha_standalone_linux64/ModMyFactoryGUI help

produces

Copyright (C) 2020 Mathis Rech

  run           (Default Verb) Starts ModMyFactory GUI

  start-game    Starts a Factorio instance

  help          Display more information on a specific command.

  version       Display version information.

Running ~/Downloads/2.2.0.11-alpha_standalone_linux64/ModMyFactoryGUI -h

produces

ModMyFactoryGUI 2.2.0.11-alpha
Copyright (C) 2020 Mathis Rech

ERROR(S):
  Option 'h' is unknown.
USAGE:
Import package files:
  ModMyFactory run --import package_1.fmp;package_2.fmpa

  -u, --no-update    Disables the automatic update check

  -i, --import       Optional list of package files to import

  -v, --verbose      Enables verbose logging

  -l, --no-log       Disables logging to file (console logging still enabled)

  -a, --app-data     Overrides the application data path

  --help             Display this help screen.

  --version          Display version information.

I understand that the -h is not an option, but given that it says --help displays this help screen and doesn't just seemed inconsistent to me.

Artentus commented 3 years ago

I'm using a 3rd party solution for handling the command line so I'm not immediately sure why this happens.
I'll take a look at it eventually but it's not a high priority issue.