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,033 Mar-11-2021, 07:39 PM
Last Post: Skaperen
  the -m option for python command Skaperen 0 1,431 Jan-09-2021, 11:33 PM
Last Post: Skaperen
  command line options Skaperen 5 2,598 Aug-14-2020, 08:48 AM
Last Post: DeaD_EyE
  opening python from the command line takes a long time to load? abdulkaderanwar 4 2,909 Jun-22-2020, 03:42 AM
Last Post: abdulkaderanwar
  f-string in command line arguments Skaperen 0 1,549 May-05-2020, 11:49 PM
Last Post: Skaperen
  key=value style command argument parser Skaperen 10 4,043 Dec-04-2019, 03:15 AM
Last Post: Skaperen
  parser for LVM head Skaperen 0 1,420 Nov-02-2019, 04:04 AM
Last Post: Skaperen
  i need a module for more involved command line parsing Skaperen 21 6,950 Sep-04-2019, 02:18 AM
Last Post: Skaperen
  cli arguments parser Skaperen 0 2,601 Mar-21-2018, 01:41 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