AbnormalSec / darkbox

what's in the box?! :package:
Do What The F*ck You Want To Public License
2 stars 1 forks source link

Some commands cause a traceback when given no args #4

Closed vesche closed 6 years ago

vesche commented 6 years ago

This is caused by nargs='?' which is fine... Just need to check for required args in run.

Need to be fixed.

For example in curl to avoid this problem:

def run(self):
    args = self.get_args()
    url = args['url']

    if not url:
        print("Error: No URL specified.")
        return