The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Get Command Line Arguments In Python

TODO: Pull subtitle into page object code_start_default_section code_end_default_section

#+RESULTS: : Number of arguments: 1 : Argument List: ['']

TODO: write up how the args work where the python executable is always in the first spot (and verify that's the case even if you call it with something like `bash -c`

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Get Command Line Arguments In Python

-- code/
-- python

import sys 
  
  total_arguments = len(sys.argv)

  print(f"Number of arguments: {total_arguments}")
  print(f"Argument List: {sys.argv}")

-- /code

-- p

#+RESULTS:
: Number of arguments: 1
: Argument List: ['']

-- p

TODO: write up how the args work where the
python executable is always in the first
spot (and verify that's the case even if
you call it with something like `bash -c`


-- categories
-- Python

-- metadata
-- date: 2021-05-29 00:00:00
-- id: 20l65wag
-- status: published
-- type: post
-- SCRUBBED_NEO: false
-- site: aws