#!/usr/bin/env python

from __future__ import print_function
import sys
from dbgcode.api import clean_file

try:
    command = sys.argv[1]

    if command == "clean":
        filepath = sys.argv[2]
        clean_file(filepath)
        print(filepath, " cleaned successfully")
    else:
        print("{}: command not found")
except IndexError:
    print("not enough args")
