home.social

#argparse — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #argparse, aggregated by home.social.

  1. @mhd I was quite fond of Amiga #CLI syntax, which many did not consider a proper #Amiga subsystem because of #BCPL, but it allowed commands to pre-declare the arguments in a uniform, documented way similar to Python’s #argparse.

    It’s actually handled by BCPL’s rdargs() function, documented in cl.cam.ac.uk/~mr10/bcplman.pdf (p68).

    1/2

  2. @mhd I was quite fond of Amiga #CLI syntax, which many did not consider a proper #Amiga subsystem because of #BCPL, but it allowed commands to pre-declare the arguments in a uniform, documented way similar to Python’s #argparse.

    It’s actually handled by BCPL’s rdargs() function, documented in cl.cam.ac.uk/~mr10/bcplman.pdf (p68).

    1/2

  3. @mhd I was quite fond of Amiga syntax, which many did not consider a proper subsystem because of , but it allowed commands to pre-declare the arguments in a uniform, documented way similar to Python’s .

    It’s actually handled by BCPL’s rdargs() function, documented in cl.cam.ac.uk/~mr10/bcplman.pdf (p68).

    1/2

  4. @mhd I was quite fond of Amiga #CLI syntax, which many did not consider a proper #Amiga subsystem because of #BCPL, but it allowed commands to pre-declare the arguments in a uniform, documented way similar to Python’s #argparse.

    It’s actually handled by BCPL’s rdargs() function, documented in cl.cam.ac.uk/~mr10/bcplman.pdf (p68).

    1/2

  5. @mhd I was quite fond of Amiga #CLI syntax, which many did not consider a proper #Amiga subsystem because of #BCPL, but it allowed commands to pre-declare the arguments in a uniform, documented way similar to Python’s #argparse.

    It’s actually handled by BCPL’s rdargs() function, documented in cl.cam.ac.uk/~mr10/bcplman.pdf (p68).

    1/2

  6. @davetron5000 @budu @pragprog Sorry it's out of print. Some tech books have a limited lifespan, although @OReillyMedia sometimes keeps "generally useful but potentially outdated" stuff available for a long time, e.g. I think they still have the original Ruby book from Matz available, which was written for #RubyLang 1.8 or 1.9 and isn't fully applicable to Ruby 3.2.2. 🤷

    #CLI argument parsing can be challenging no matter what you use. #Fishshell #argparse has a lot of limitations cf. GNU #getopt.