Skip to content

Commit

Permalink
feat: add getopt to dynamic input
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed May 13, 2024
1 parent 9daae03 commit dc0bf0e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rules/python/shared/lang/dynamic_input.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ patterns:
- variable: PARSER
detection: python_shared_lang_dynamic_input_parser
scope: result
- pattern: $<GETOPT>.getopt($<...>)
filters:
- variable: GETOPT
detection: python_shared_lang_dynamic_input_getopt
scope: result
auxiliary:
- id: python_shared_lang_dynamic_input_parser
patterns:
Expand All @@ -28,6 +33,11 @@ auxiliary:
- import $<!>argparse
- import argparse as $<!>$<_>
- argparse # fallback
- id: python_shared_lang_dynamic_input_getopt
patterns:
- import $<!>getopt
- import getopt as $<!>$<_>
- getopt # fallback
metadata:
description: "Python dynamic input."
id: python_shared_lang_dynamic_input

0 comments on commit dc0bf0e

Please sign in to comment.