<commit_before>"""This module contains the main() function,
to parse command line

"""


import os
import sys

import argparse

import pycp
from pycp.transfer import TransferManager, TransferError

def main():
    """Parses command line arguments"""
    if sys.argv[0].endswith("pymv"):
        move = True
        prog_name = "pymv"
        action = "move"
    else:
        move = False
        prog_name = "pycp"
        action = "copy"

    version = "%s version %s" % (prog_name, pycp.__version__)

    parser = argparse.ArgumentParser(prog=prog_name)

    parser.add_argument("-v", "--version", action="version",
            version=version)
    parser.add_argument("-i", "--interactive",
            action  = "store_true",
            dest    = "interactive",
            help    = "ask before overwriting existing files")

    parser.add_argument("-s", "--safe",
            action  = "store_true",
            dest    = "safe",
            help    = "never overwirte existing files")

    parser.add_argument("-f", "--force",
            action  = "store_false",
            dest    = "safe",
            help    = "silently overwirte existing files " + \
                "(this is the default)")

    parser.add_argument("-a", "--all",
            action = "store_true",<commit_msg>re-add custom usage<commit_after>"""This module contains the main() function,
to parse command line

"""


import os
import sys

import argparse

import pycp
from pycp.transfer import TransferManager, TransferError

def main():
    """Parses command line arguments"""
    if sys.argv[0].endswith("pymv"):
        move = True
        prog_name = "pymv"
        action = "move"
    else:
        move = False
        prog_name = "pycp"
        action = "copy"

    usage = """
    %s [options] SOURCE DESTINATION
    %s [options] SOURCE... DIRECTORY

    %s SOURCE to DESTINATION or mutliple SOURCE(s) to DIRECTORY
    """ % (prog_name, prog_name, action)

    version = "%s version %s" % (prog_name, pycp.__version__)

    parser = argparse.ArgumentParser(usage=usage, prog=prog_name)

    parser.add_argument("-v", "--version", action="version",
            version=version)
    parser.add_argument("-i", "--interactive",
            action  = "store_true",
            dest    = "interactive",
            help    = "ask before overwriting existing files")

    parser.add_argument("-s", "--safe",
            action  = "store_true",
            dest    = "safe",
            help    = "never overwirte existing files")

    parser.add_argument("-f", "--force",
            action  = "store_false",
            dest    = "safe",
            help    = "silently overwirte existing files " + \
                "(this is the default)")

    parser.add_argument("-a", "--all",
            action = "store_true",
{'fraction_non_alphanumeric': 0.1303106033559443, 'fraction_numerical': 0.0007140307033202428, 'mean_word_length': 2.166101694915254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '171892', 'n_tokens_mistral': 837, 'n_tokens_neox': 814, 'n_words': 219}