• =?utf-8?Q?Re:_argparse_=E2=80=94_adding_a_--version_flag_in_the_?= =?ut

    From Karen Park@21:1/5 to All on Sun Nov 27 22:23:16 2022
    I figured it out…there was a logistics file given with the assignment! I thought it was supposed to be a download included with the python download…oops!

    Thanks,

    Karen


    On Nov 27, 2022, at 9:34 PM, Skip Montanaro <skip.montanaro@gmail.com> wrote:

    


    ummm, hate to say this, but have you checked the documentation? this
    case is supported using an action named 'version' without doing very much. >>

    Thanks, Mats.

    I actually searched all over the argparse docs. (There's a lot to digest. Honestly, if I wasn't attempting to be sort of up-to-date I'd just continue using getopt.) It never occurred to me that "version" would be special, so
    I didn't specifically search for it, or realize there would be a specific action devoted to it. I knew (the default) "help" was special, so I focused my search for it. Obviously, "--help" is a pretty bad search term.

    Skip


    --
    https://mail.python.org/mailman/listinfo/python-list

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Lee Bieber@21:1/5 to All on Mon Nov 28 10:56:13 2022
    On Sun, 27 Nov 2022 22:23:16 -0600, Karen Park <jkpark@mymts.net> declaimed
    the following:

    I figured it out…there was a logistics file given with the assignment! I thought it was supposed to be a download included with the python download…oops!

    I think you made this response in the wrong thread...


    --
    Wulfraed Dennis Lee Bieber AF6VN
    wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)