Replies: 1 comment 1 reply
-
|
Can you explain what you're trying to achieve? In your example you could call two_function() from within tshark_do(file), but I presume there's a reason why that doesn't solve your problem. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
`import sys, click, os
def two_function(DataFile="test"):
print("test")
print(DataFile)
@click.command()
@click.option('-f', '--file', required=True, help="file")
def tshark_do(file):
print(file)
if name == "main":
tshark_do()
print(1)
two_function()
print(2)`
seemd that function
print(1),two_function(),print(2)can't be invoked , is there a good idea to solve it if i want to invoke them?Beta Was this translation helpful? Give feedback.
All reactions