LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

fix: replace deprecated optparse with argparse

Open eggplants opened this issue 2 years ago • 0 comments

Description

I replaced optparse with argparse and refactored some process to check arguments.

Breaking change: Status code 4 no longer occurs because argparse checks whether an argument is passed.

Fixes #3912

Type of change

  • [x] New feature (change which adds functionality).
  • [x] Refactor (restructures existing code).

Checklist

PR will not be merged until all steps are complete.

  • [x] This pull request links to an issue.
  • [x] This pull request uses the develop branch as its base.
  • [x] This pull request Subject follows the Conventional Commits standard.
  • [x] This code follows the style guidelines of this project.
  • [x] I have performed a self-review of my code.
  • [x] I have checked that this code is commented where required.
  • [x] I have provided a detailed with enough description of this PR.
  • [x] I have checked If documentation needs updating.
    • https://github.com/GameServerManagers/LinuxGSM-Dev-Docs/pull/2
    • https://github.com/GameServerManagers/LinuxGSM-Docs/pull/84

eggplants avatar Jul 01 '22 23:07 eggplants