Gourav Kumar
2 years ago
2 changed files with 3 additions and 28 deletions
@ -1,20 +0,0 @@ |
|||
import sys |
|||
|
|||
|
|||
def main(args=None): |
|||
"""The main routine.""" |
|||
if args is None: |
|||
args = sys.argv[1:] |
|||
|
|||
print("This is the main routine.") |
|||
print("It should do something interesting.") |
|||
|
|||
print("This is the name of the script: ", sys.argv[0]) |
|||
print("Number of arguments: ", len(sys.argv)) |
|||
print("The arguments are: ", str(sys.argv)) |
|||
|
|||
# Do argument parsing here with argparse |
|||
|
|||
|
|||
if __name__ == "__main__": |
|||
main() |
Loading…
Reference in new issue