Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
augustin_s
pier
Commits
7cd9383e
Commit
7cd9383e
authored
May 11, 2022
by
augustin_s
🐍
Browse files
added example script with arguments
parent
74e39010
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
scripts/example-with-args.py
scripts/example-with-args.py
+11
-0
No files found.
scripts/example-with-args.py
0 → 100755
View file @
7cd9383e
#!/usr/bin/env python
import
argparse
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"-t"
,
"--test"
)
clargs
=
parser
.
parse_args
()
print
(
clargs
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment