☰
Debian Codegraph
@
4.2.0+ds-1
/
/
examples
/
scripts
/
arg_printer.py
☽
☼
examples/scripts/arg_printer.py
code
plain
raw
symbols
SCIP
MIT
2010-2022, Catherine Devlin <
[email protected]
>; 2017-2021, Todd Leonhardt <
[email protected]
>; 2018-2021, Kevin Van Brunt
debian/copyright
1
#!/usr/bin/env python
2
import
os
3
import
sys
4
5
print
(
f"Running Python script
{
os
.
path
.
basename
(
sys
.
argv
[
0
])!r}
which was called with
{
len
(
sys
.
argv
) -
1
}
arguments"
)
6
for
i, arg in
enumerate
(sys.
argv
[
1
:]):
7
print
(
f"arg
{
i
+
1
}
:
{
arg
!r}
"
)