Python Forum
my own command line option parser
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
my own command line option parser
#1
i'm creating my own command line option parser function. i might make it into a class but its not that much to configure and i normally never need multiple instances of this. it will support options that begin with '-' or '+' or '--' or '++'. it can also collect name=value and anything you set up in a set. it also recognizes IPv4 and IPv6 addresses in place. it will also deal with '--help' and '--version' directly (do output and exit).

it won't be very popular if i release it because it is for command line scripts and won't be pythonic.

last call for suggestions for v1. coding has started.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  review of command line parsers Skaperen 2 2,069 Mar-11-2021, 07:39 PM
Last Post: Skaperen
  the -m option for python command Skaperen 0 1,465 Jan-09-2021, 11:33 PM
Last Post: Skaperen
  command line options Skaperen 5 2,669 Aug-14-2020, 08:48 AM
Last Post: DeaD_EyE
  opening python from the command line takes a long time to load? abdulkaderanwar 4 3,009 Jun-22-2020, 03:42 AM
Last Post: abdulkaderanwar
  f-string in command line arguments Skaperen 0 1,585 May-05-2020, 11:49 PM
Last Post: Skaperen
  key=value style command argument parser Skaperen 10 4,177 Dec-04-2019, 03:15 AM
Last Post: Skaperen
  i need a module for more involved command line parsing Skaperen 21 7,144 Sep-04-2019, 02:18 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020