Sh1Fu / Netlab

A simple python script for working with Netlab API
2 stars 0 forks source link

Use argparse library #9

Closed Sh1Fu closed 2 years ago

Sh1Fu commented 2 years ago

In branch feature/crontab_task try to use argparse lib instead of self.commands dictionary

class CMDInput(Main):
    def __init__(self) -> None:
        self.commands = {
            "-u": [0, ""], 
            "-p": [0, ""], 
            "-m": [0, ""]
        }
# ...