#!/usr/bin/env python2


import argparse
import fsutils

# Set up command line argument parsing
parser = argparse.ArgumentParser()
# Require a directory to be specified
parser.add_argument("directory", nargs='*')
parser.add_argument("-p", "--parents",
                    action='store_true',
                    default=False,
                    help="create parent directories if they don't exist")
# Parse arguments
args = parser.parse_args()

fsutils.create_dirs(args.parents, args.directory)

f8901ba794e643e8be58c2e38a96744e25608c44
<mask token>

<mask token>
parser.add_argument('directory', nargs='*')
parser.add_argument('-p', '--parents', action='store_true', default=False,
    help="create parent directories if they don't exist")
<mask token>
fsutils.create_dirs(args.parents, args.directory)

<mask token>
parser = argparse.ArgumentParser()
parser.add_argument('directory', nargs='*')
parser.add_argument('-p', '--parents', action='store_true', default=False,
    help="create parent directories if they don't exist")
args = parser.parse_args()
fsutils.create_dirs(args.parents, args.directory)

import argparse
import fsutils
parser = argparse.ArgumentParser()
parser.add_argument('directory', nargs='*')
parser.add_argument('-p', '--parents', action='store_true', default=False,
    help="create parent directories if they don't exist")
args = parser.parse_args()
fsutils.create_dirs(args.parents, args.directory)

#!/usr/bin/env python2


import argparse
import fsutils

# Set up command line argument parsing
parser = argparse.ArgumentParser()
# Require a directory to be specified
parser.add_argument("directory", nargs='*')
parser.add_argument("-p", "--parents",
                    action='store_true',
                    default=False,
                    help="create parent directories if they don't exist")
# Parse arguments
args = parser.parse_args()

fsutils.create_dirs(args.parents, args.directory)
